Calling ->chown() and ->chgrp() in WP_Filesystem_FTPext produces no side-effects. Remove the calls. ->chgrp() is defined in the super class, and does nothing, can be removed from the child class.

See #30799.


git-svn-id: https://develop.svn.wordpress.org/trunk@31215 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2015-01-16 21:06:29 +00:00
parent 19b4a0053a
commit 9a16e6230b

View File

@ -170,15 +170,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
return @ftp_chdir($this->link, $dir);
}
/**
* @param string $file
* @param bool $group
* @param bool $recursive
*/
public function chgrp($file, $group, $recursive = false ) {
return false;
}
/**
* @param string $file
* @param int $mode
@ -365,10 +356,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
if ( !@ftp_mkdir($this->link, $path) )
return false;
$this->chmod($path, $chmod);
if ( $chown )
$this->chown($path, $chown);
if ( $chgrp )
$this->chgrp($path, $chgrp);
return true;
}