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.

Built from https://develop.svn.wordpress.org/trunk@31216


git-svn-id: http://core.svn.wordpress.org/trunk@31197 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-01-16 21:10:23 +00:00
parent 6fa7021d62
commit 7c5038feb6
2 changed files with 1 additions and 14 deletions

View File

@ -171,15 +171,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
return $this->ftp->chdir($file); 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 string $file
* @param int|bool $mode * @param int|bool $mode
@ -375,10 +366,6 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
if ( ! $chmod ) if ( ! $chmod )
$chmod = FS_CHMOD_DIR; $chmod = FS_CHMOD_DIR;
$this->chmod($path, $chmod); $this->chmod($path, $chmod);
if ( $chown )
$this->chown($path, $chown);
if ( $chgrp )
$this->chgrp($path, $chgrp);
return true; return true;
} }

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.2-alpha-31215'; $wp_version = '4.2-alpha-31216';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.