From 2ed007c023a3def562133606113b36924b83d8d0 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 16 Jan 2015 21:09:18 +0000 Subject: [PATCH] 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 --- .../includes/class-wp-filesystem-ftpsockets.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php b/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php index d61766da04..a1abc0d1df 100644 --- a/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php +++ b/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php @@ -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; }