[wp-trac] [WordPress Trac] #53102: Incorrect documentation for delete_{$meta_type}_meta and deleted_{$meta_type}_meta filter hooks
WordPress Trac
noreply at wordpress.org
Thu Nov 11 18:30:41 UTC 2021
#53102: Incorrect documentation for delete_{$meta_type}_meta and
deleted_{$meta_type}_meta filter hooks
--------------------------------------+----------------------------
Reporter: pputzer | Owner: davidbaumwald
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.9
Component: Options, Meta APIs | Version: 5.4
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-patch | Focuses: docs
--------------------------------------+----------------------------
Changes (by davidbaumwald):
* owner: (none) => davidbaumwald
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"52140" 52140]:
{{{
#!CommitTicketReference repository="" revision="52140"
Options, Meta APIs: Correct docs for `$_meta_value` parameter in
`xxx_{$meta_type}_meta` hooks.
In `add_{$meta_type}_meta`, `added_{$meta_type}_meta`,
`update_{$meta_type}_meta`, `updated_{$meta_type}_meta`,
`delete_{$meta_type}_meta`, and `deleted_{$meta_type}_meta` hooks, the
`$_meta_value` parameter was documented as "Serialized if non-scalar".
However, `$_meta_value` is a copy of the raw meta value before
`maybe_serialize` is run and is not serialized. This change updates each
of the above hooks' docblocks to remove "Serialized if non-scalar" from
the `$_meta_value` parameter description.
Props pputzer, hasanuzzamanshamim.
Fixes #53102.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53102#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list