Make WordPress Core


Ignore:
Timestamp:
09/24/2015 02:34:15 PM (11 years ago)
Author:
DrewAPicture
Message:

Docs: Mark the optional $upgrader parameter as such and add a description in the DocBlock for Language_Pack_Upgrader::async_upgrade().

See [32655].

See #30989. See #32246.

File:
1 edited

Legend:

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

    r33685 r34497  
    18071807
    18081808        /**
    1809          * Asynchronously upgrade language packs after other upgrades have been made.
     1809         * Asynchronously upgrades language packs after other upgrades have been made.
    18101810         *
    18111811         * Hooked to the {@see 'upgrader_process_complete'} action by default.
    … …  
    18131813         * @since 3.7.0
    18141814         * @access public
    1815          *
    18161815         * @static
    18171816         *
    1818          * @param false|WP_Upgrader $upgrader
     1817         * @param false|WP_Upgrader $upgrader Optional. WP_Upgrader instance or false. If `$upgrader` is
     1818         *                                    a Language_Pack_Upgrader instance, the method will bail to
     1819         *                                    avoid recursion. Otherwise unused. Default false.
    18191820         */
    18201821        public static function async_upgrade( $upgrader = false ) {
    … …  
    18301831                }
    18311832
    1832                 // Avoid messing with VCS installs, at least for now.
    1833                 // Noted: this is not the ideal way to accomplish this.
     1833                /*
     1834                 * Avoid messing with VCS installs, at least for now.
     1835                 * Noted: this is not the ideal way to accomplish this.
     1836                 */
    18341837                $check_vcs = new WP_Automatic_Updater;
    18351838                if ( $check_vcs->is_vcs_checkout( WP_CONTENT_DIR ) ) {
Note: See TracChangeset for help on using the changeset viewer.