Make WordPress Core

Ticket #50848: 50848.diff

File 50848.diff, 625 bytes (added by audrasjb, 5 years ago)

Upgrade/Install: Clarify the usage of null for auto_update_{$type} filter

  • 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..bc33cce7a2 100644
    a b class WP_Automatic_Updater { 
    196196                 *
    197197                 * @since 3.7.0
    198198                 *
    199                  * @param bool  $update Whether to update.
    200                  * @param object $item   The update offer.
     199                 * @param bool|null $update Whether to update.
     200                 * @param object    $item   The update offer.
    201201                 */
    202202                $update = apply_filters( "auto_update_{$type}", $update, $item );
    203203