Make WordPress Core

Changeset 31215


Ignore:
Timestamp:
01/16/2015 09:06:29 PM (10 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-filesystem-ftpext.php

    r31209 r31215  
    173173    /**
    174174     * @param string $file
    175      * @param bool $group
    176      * @param bool $recursive
    177      */
    178     public function chgrp($file, $group, $recursive = false ) {
    179         return false;
    180     }
    181 
    182     /**
    183      * @param string $file
    184175     * @param int $mode
    185176     * @param bool $recursive
     
    366357            return false;
    367358        $this->chmod($path, $chmod);
    368         if ( $chown )
    369             $this->chown($path, $chown);
    370         if ( $chgrp )
    371             $this->chgrp($path, $chgrp);
    372359        return true;
    373360    }
Note: See TracChangeset for help on using the changeset viewer.