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. Built from https://develop.svn.wordpress.org/trunk@31215 git-svn-id: http://core.svn.wordpress.org/trunk@31196 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f6fd49b357
commit
6fa7021d62
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.2-alpha-31214';
|
||||
$wp_version = '4.2-alpha-31215';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue