Ensure slashing of paths returned by WP_Filesystem_Base::find_folder() is consistent with the slashing of paths; Affects Windows machines using the Direct transport.

git-svn-id: https://develop.svn.wordpress.org/trunk@14810 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2010-05-23 05:54:32 +00:00
parent 8bf25b8849
commit 606e4106aa

View File

@ -142,6 +142,7 @@ class WP_Filesystem_Base {
if ( defined($constant) && $folder === $dir )
return trailingslashit(constant($constant));
} elseif ( 'direct' == $this->method ) {
$folder = str_replace('\\', '/', $folder); //Windows path sanitiation
return trailingslashit($folder);
}