[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 19:00:34 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 | Resolution:
Keywords: | Focuses: docs
--------------------------+------------------------------
Comment (by pputzer):
On further investigation, the issue may stem at least partially from the
to separate uses of the hook in `delete_metadata` and
`delete_metadata_by_mid`. The latter uses `get_metadata_by_mid` to
retrieve the current values before deleting the metadata. The meta value
is still not serialized, though.
I think the best solution would be to read the actual meta values in
`delete_metadata` as well.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53102#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list