From 6fa7021d62b15a7f92512813171b4cd25186d208 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 16 Jan 2015 21:07:24 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-filesystem-ftpext.php | 13 ------------- wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/wp-admin/includes/class-wp-filesystem-ftpext.php b/wp-admin/includes/class-wp-filesystem-ftpext.php index b4809d4b0d..109acc16ff 100644 --- a/wp-admin/includes/class-wp-filesystem-ftpext.php +++ b/wp-admin/includes/class-wp-filesystem-ftpext.php @@ -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; } diff --git a/wp-includes/version.php b/wp-includes/version.php index a0761d5346..19a8eb01f9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.