Make WordPress Core

Ticket #51126: 51126.1.diff

File 51126.1.diff, 2.1 KB (added by audrasjb, 4 years ago)

Patch refresh

  • 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 641db4b325..1bd8c1ff1c 100644
    a b class WP_Automatic_Updater { 
    206206                 *
    207207                 * @param bool|null $update Whether to update. The value of null is internally used
    208208                 *                          to detect whether nothing has hooked into this filter.
    209                  * @param object    $item   The update offer.
     209                 * @param object    $item {
     210                 *     The update offer.
     211                 *
     212                 *     @type string   $current            The version number of the update offer.
     213                 *     @type bool     $disable_autoupdate Whether automatic updates for this particular update offer have been
     214                 *                                        remotely disabled via the update API response.
     215                 *     @type bool     $dismissed          Whether this update offer has previously been dismissed.
     216                 *     @type string   $download           URL to the ZIP file for the update.
     217                 *     @type string   $locale             Locale of the update offer, eg. `en_US`.
     218                 *     @type string   $mysql_version      Minimum required MySQL version for the update.
     219                 *     @type object   $packages {
     220                 *         URLs for various ZIP packages for the update.
     221                 *
     222                 *         @type false|string $full        URL to the full ZIP package.
     223                 *         @type false|string $no_content  URL to the no content ZIP package.
     224                 *         @type false|string $new_bundled URL to the new bundled ZIP package.
     225                 *         @type false|string $partial     URL to the partial ZIP package.
     226                 *         @type false|string $rollback    URL to the rollback ZIP package.
     227                 *     }
     228                 *     @type string   $php_version        Minimum required PHP version for the update.
     229                 *     @type string   $plugin             File name of the plugin in the update offer, eg. `akismet/akismet.php`.
     230                 *     @type string   $theme              Directory name of the theme in the update offer, eg. `twentytwenty`.
     231                 * }
    210232                 */
    211233                $update = apply_filters( "auto_update_{$type}", $update, $item );
    212234