Typo fixes from DD32. fixes #6818 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7785 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
202cb03220
commit
41ab0e3935
@ -47,7 +47,7 @@ class WP_Filesystem_Direct{
|
||||
if( ! $this->is_dir($file) )
|
||||
return @chgrp($file,$group);
|
||||
//Is a directory, and we want recursive
|
||||
$file = trailingshashit($file);
|
||||
$file = trailingslashit($file);
|
||||
$filelist = $this->dirlist($file);
|
||||
foreach($filelist as $filename)
|
||||
$this->chgrp($file . $filename, $group, $recursive);
|
||||
@ -64,7 +64,7 @@ class WP_Filesystem_Direct{
|
||||
if( ! $this->is_dir($file) )
|
||||
return @chmod($file,$mode);
|
||||
//Is a directory, and we want recursive
|
||||
$file = trailingshashit($file);
|
||||
$file = trailingslashit($file);
|
||||
$filelist = $this->dirlist($file);
|
||||
foreach($filelist as $filename)
|
||||
$this->chmod($file . $filename, $mode, $recursive);
|
||||
@ -177,7 +177,7 @@ class WP_Filesystem_Direct{
|
||||
}
|
||||
|
||||
function copy($source,$destination,$overwrite=false){
|
||||
if( $overwrite && $this->exists($destination) )
|
||||
if( ! $overwrite && $this->exists($destination) )
|
||||
return false;
|
||||
return copy($source,$destination);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user