Make WordPress Core

Ticket #50848: 50848.1.diff

File 50848.1.diff, 744 bytes (added by audrasjb, 5 years ago)

Upgrade/Install: Docs: Clarify the usage of null in 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..4a5a226ad6 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. Value of null is internally used to
     200                 *                          detect whether nothing has hooked into this filter.
     201                 * @param object    $item   The update offer.
    201202                 */
    202203                $update = apply_filters( "auto_update_{$type}", $update, $item );
    203204