Make WordPress Core


Ignore:
Timestamp:
07/13/2015 07:45:45 PM (11 years ago)
Author:
DrewAPicture
Message:

Fix inline documentation syntax in the WP_Upgrader->clear_destination() method added in 4.3.

See [32854]. See #32891.

File:
1 edited

Legend:

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

    r32963 r33209  
    302302         *
    303303         * @param string $remote_destination The location on the remote filesystem to be cleared
    304          *
    305          * @return bool|WP_Error true upon success, {@see WP_Error} on failure.
     304         * @return bool|WP_Error True upon success, WP_Error on failure.
    306305         */
    307306        public function clear_destination( $remote_destination ) {
     
    312311                }
    313312
    314                 // Check all files are writable before attempting to clear the destination
     313                // Check all files are writable before attempting to clear the destination.
    315314                $unwritable_files = array();
    316315
    317316                $_files = $wp_filesystem->dirlist( $remote_destination, true, true );
    318                 // Flatten the resulting array, iterate using each as we append to the array during iteration
     317
     318                // Flatten the resulting array, iterate using each as we append to the array during iteration.
    319319                while ( $f = each( $_files ) ) {
    320320                        $file = $f['value'];
     
    330330                }
    331331
    332                 // Check writability
     332                // Check writability.
    333333                foreach ( $_files as $filename => $file_details ) {
    334334                        if ( ! $wp_filesystem->is_writable( $remote_destination . $filename ) ) {
    335                                 // Attempt to alter permissions to allow writes and try again
     335
     336                                // Attempt to alter permissions to allow writes and try again.
    336337                                $wp_filesystem->chmod( $remote_destination . $filename, ( 'd' == $file_details['type'] ? FS_CHMOD_DIR : FS_CHMOD_FILE ) );
    337338                                if ( ! $wp_filesystem->is_writable( $remote_destination . $filename ) ) {
Note: See TracChangeset for help on using the changeset viewer.