From 41ab0e393586e1608b1f46137c7a8aa7e71604ee Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 23 Apr 2008 01:14:26 +0000 Subject: [PATCH] Typo fixes from DD32. fixes #6818 for trunk git-svn-id: https://develop.svn.wordpress.org/trunk@7785 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/class-wp-filesystem-direct.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/class-wp-filesystem-direct.php b/wp-admin/includes/class-wp-filesystem-direct.php index e775070e23..45972a3875 100644 --- a/wp-admin/includes/class-wp-filesystem-direct.php +++ b/wp-admin/includes/class-wp-filesystem-direct.php @@ -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); }