From 94555079eb56cccf9339b54302a979bc539ab66c Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 31 Aug 2020 13:20:07 +0000 Subject: [PATCH] Docs: Clarify the usage of `null` for `auto_update_{$type}` filter. The value is internally used to detect whether nothing has hooked into this filter. Props audrasjb, pbiron, johnbillion, SergeyBiryukov. Fixes #50848. Built from https://develop.svn.wordpress.org/trunk@48909 git-svn-id: http://core.svn.wordpress.org/trunk@48671 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-automatic-updater.php | 6 ++++-- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/class-wp-automatic-updater.php b/wp-admin/includes/class-wp-automatic-updater.php index 4a093b4573..9cf0a04ac1 100644 --- a/wp-admin/includes/class-wp-automatic-updater.php +++ b/wp-admin/includes/class-wp-automatic-updater.php @@ -195,9 +195,11 @@ class WP_Automatic_Updater { * adjust core updates. * * @since 3.7.0 + * @since 5.5.0 The `$update` parameter accepts the value of null. * - * @param bool $update Whether to update. - * @param object $item The update offer. + * @param bool|null $update Whether to update. The value of null is internally used + * to detect whether nothing has hooked into this filter. + * @param object $item The update offer. */ $update = apply_filters( "auto_update_{$type}", $update, $item ); diff --git a/wp-includes/version.php b/wp-includes/version.php index a7855e6800..5134411c19 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-alpha-48908'; +$wp_version = '5.6-alpha-48909'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.