Calling ->chown() and ->chgrp() in WP_Filesystem_ftpsockets 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@31216 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2015-01-16 21:09:18 +00:00
parent 9a16e6230b
commit 2ed007c023

View File

@ -171,15 +171,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
return $this->ftp->chdir($file);
}
/**
* @param string $file
* @param bool $group
* @param bool $recursive
*/
public function chgrp($file, $group, $recursive = false ) {
return false;
}
/**
* @param string $file
* @param int|bool $mode
@ -375,10 +366,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
if ( ! $chmod )
$chmod = FS_CHMOD_DIR;
$this->chmod($path, $chmod);
if ( $chown )
$this->chown($path, $chown);
if ( $chgrp )
$this->chgrp($path, $chgrp);
return true;
}