mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@48909 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user