[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
Tue Apr 27 18:48:42 UTC 2021


#53102: Incorrect documentation for delete_{$meta_type}_meta and
deleted_{$meta_type}_meta filter hooks
--------------------------+-----------------------------
 Reporter:  pputzer       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.4
 Severity:  normal        |   Keywords:
  Focuses:  docs          |
--------------------------+-----------------------------
 The inline documentation for `delete_{$meta_type}_meta` and
 `deleted_{$meta_type}_meta` incorrectly states that the `$_meta_value`
 parameter is `Serialized if non-scalar` (from [47390]). While
 `$meta_value` is run through `maybe_serialize`, `$_meta_value` is not.

 Also, I think the hook documentation should make it clear that the meta
 value is only passed from the optional function argument, so it might not
 contain anything meaningful.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53102>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list