[wp-trac] [WordPress Trac] #50848: Clarify the usage of null for "auto_update_{$type}" filter
WordPress Trac
noreply at wordpress.org
Tue Aug 4 17:35:58 UTC 2020
#50848: Clarify the usage of null for "auto_update_{$type}" filter
-----------------------------+--------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.6
Component: Upgrade/Install | Version:
Severity: normal | Keywords:
Focuses: docs |
-----------------------------+--------------------
The first parameter of the `auto_update_{$type}` filter is documented as
`bool`:
{{{
/**
* ...
* @param bool $update Whether to update.
* @param object $item The update offer.
*/
$update = apply_filters( "auto_update_{$type}", $update, $item );
}}}
In a few instances, as `auto_update_plugin` or `auto_update_theme`, it
also receives `null`.
The usage of `null` should be clarified in the docs.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50848>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list