Make WordPress Core


Ignore:
Timestamp:
08/24/2021 11:08:11 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Clarify a comment in WP_Upgrader::run().

This matches the WP_Upgrader::download_package() documentation more closely.

Follow-up to [11005], [30758], [33685].

See #53399.

File:
1 edited

Legend:

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

    r51527 r51654  
    379379     * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
    380380     *
    381      * @param string $remote_destination The location on the remote filesystem to be cleared
     381     * @param string $remote_destination The location on the remote filesystem to be cleared.
    382382     * @return bool|WP_Error True upon success, WP_Error on failure.
    383383     */
     
    564564             * @since 2.8.0
    565565             *
    566              * @param true|WP_Error $removed            Whether the destination was cleared. true upon success, WP_Error on failure.
     566             * @param true|WP_Error $removed            Whether the destination was cleared.
     567             *                                          True upon success, WP_Error on failure.
    567568             * @param string        $local_destination  The local package destination.
    568569             * @param string        $remote_destination The remote package destination.
     
    737738
    738739        /*
    739          * Download the package (Note, This just returns the filename
    740          * of the file if the package is a local file)
     740         * Download the package. Note: If the package is the full path
     741         * to an existing local file, it will be returned untouched.
    741742         */
    742743        $download = $this->download_package( $options['package'], true, $options['hook_extra'] );
     
    869870     * @since 2.8.0
    870871     *
    871      * @global WP_Filesystem_Base $wp_filesystem Subclass
     872     * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
    872873     *
    873874     * @param bool $enable True to enable maintenance mode, false to disable.
Note: See TracChangeset for help on using the changeset viewer.