Make WordPress Core


Ignore:
Timestamp:
01/16/2015 09:09:18 PM (12 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

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

    r31209 r31216  
    174174        /**
    175175         * @param string $file
    176          * @param bool $group
    177          * @param bool $recursive
    178          */
    179         public function chgrp($file, $group, $recursive = false ) {
    180                 return false;
    181         }
    182 
    183         /**
    184          * @param string $file
    185176         * @param int|bool $mode
    186177         * @param bool $recursive
    … …  
    376367                        $chmod = FS_CHMOD_DIR;
    377368                $this->chmod($path, $chmod);
    378                 if ( $chown )
    379                         $this->chown($path, $chown);
    380                 if ( $chgrp )
    381                         $this->chgrp($path, $chgrp);
    382369                return true;
    383370        }
Note: See TracChangeset for help on using the changeset viewer.