mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-02 09:07:59 +02:00
Typo fixes from DD32. fixes #6818 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7785 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5d839715d5
commit
5ea7b64496
@ -47,7 +47,7 @@ class WP_Filesystem_Direct{
|
|||||||
if( ! $this->is_dir($file) )
|
if( ! $this->is_dir($file) )
|
||||||
return @chgrp($file,$group);
|
return @chgrp($file,$group);
|
||||||
//Is a directory, and we want recursive
|
//Is a directory, and we want recursive
|
||||||
$file = trailingshashit($file);
|
$file = trailingslashit($file);
|
||||||
$filelist = $this->dirlist($file);
|
$filelist = $this->dirlist($file);
|
||||||
foreach($filelist as $filename)
|
foreach($filelist as $filename)
|
||||||
$this->chgrp($file . $filename, $group, $recursive);
|
$this->chgrp($file . $filename, $group, $recursive);
|
||||||
@ -64,7 +64,7 @@ class WP_Filesystem_Direct{
|
|||||||
if( ! $this->is_dir($file) )
|
if( ! $this->is_dir($file) )
|
||||||
return @chmod($file,$mode);
|
return @chmod($file,$mode);
|
||||||
//Is a directory, and we want recursive
|
//Is a directory, and we want recursive
|
||||||
$file = trailingshashit($file);
|
$file = trailingslashit($file);
|
||||||
$filelist = $this->dirlist($file);
|
$filelist = $this->dirlist($file);
|
||||||
foreach($filelist as $filename)
|
foreach($filelist as $filename)
|
||||||
$this->chmod($file . $filename, $mode, $recursive);
|
$this->chmod($file . $filename, $mode, $recursive);
|
||||||
@ -177,7 +177,7 @@ class WP_Filesystem_Direct{
|
|||||||
}
|
}
|
||||||
|
|
||||||
function copy($source,$destination,$overwrite=false){
|
function copy($source,$destination,$overwrite=false){
|
||||||
if( $overwrite && $this->exists($destination) )
|
if( ! $overwrite && $this->exists($destination) )
|
||||||
return false;
|
return false;
|
||||||
return copy($source,$destination);
|
return copy($source,$destination);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user