[wp-trac] [WordPress Trac] #29082: Pass $meta_id into sanitize_meta() and subsequently into the filter for register_meta callback
WordPress Trac
noreply at wordpress.org
Fri Aug 1 09:59:58 UTC 2014
#29082: Pass $meta_id into sanitize_meta() and subsequently into the filter for
register_meta callback
-------------------------+-----------------------------
Reporter: sc0ttkclark | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.3
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
To use Post Type based sanitization for specific meta keys, currently
register_meta adds the filter but while the 'auth' filter gets access to
the Post ID, the 'sanitize' filter does not. We would need to add
$object_id in the cases of add/update_metadata, and in the case of
update_metadata_by_mid we'd need to pass the Post ID into that function as
well, which would then pass along to sanitize_meta() usage.
Is anyone against this proposal? If so, a patch can be drawn up.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29082>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list