Make WordPress Core

Ticket #51126: 51126.diff

File 51126.diff, 1.8 KB (added by johnbillion, 4 years ago)
  • src/wp-admin/includes/class-wp-automatic-updater.php

    diff --git a/src/wp-admin/includes/class-wp-automatic-updater.php b/src/wp-admin/includes/class-wp-automatic-updater.php
    index 4cf2b0b75b..bc5eaaf536 100644
    a b class WP_Automatic_Updater { 
    197197                 * @since 3.7.0
    198198                 *
    199199                 * @param bool   $update Whether to update.
    200                  * @param object $item   The update offer.
     200                 * @param object $item {
     201                 *     The update offer.
     202                 *
     203                 *     @type string   $current            The version number of the update offer.
     204                 *     @type bool     $disable_autoupdate Whether automatic updates for this particular update offer have been
     205                 *                                        remotely disabled via the update API response.
     206                 *     @type bool     $dismissed          Whether this update offer has previously been dismissed.
     207                 *     @type string   $download           URL to the ZIP file for the update.
     208                 *     @type string   $locale             Locale of the update offer, eg. `en_US`.
     209                 *     @type string   $mysql_version      Minimum required MySQL version for the update.
     210                 *     @type object   $packages {
     211                 *         URLs for various ZIP packages for the update.
     212                 *
     213                 *         @type false|string $full
     214                 *         @type false|string $no_content
     215                 *         @type false|string $new_bundled
     216                 *         @type false|string $partial
     217                 *         @type false|string $rollback
     218                 *     }
     219                 *     @type string   $php_version        Minimum required PHP version for the update.
     220                 *     @type string   $plugin             File name of the plugin in the update offer, eg. `akismet/akismet.php`.
     221                 *     @type string   $theme              Directory name of the theme in the update offer, eg. `twentytwenty`.
     222                 * }
    201223                 */
    202224                $update = apply_filters( "auto_update_{$type}", $update, $item );
    203225