[wp-trac] [WordPress Trac] #35658: Provide additional data for registered meta through register_meta()
WordPress Trac
noreply at wordpress.org
Wed Jul 13 04:45:52 UTC 2016
#35658: Provide additional data for registered meta through register_meta()
-------------------------------------------------+-------------------------
Reporter: jeremyfelt | Owner: helen
Type: task (blessed) | Status: accepted
Priority: high | Milestone: 4.6
Component: Options, Meta APIs | Version:
Severity: normal | Resolution:
Keywords: needs-unit-tests needs-testing has- | Focuses:
patch rest-api needs-dev-note |
-------------------------------------------------+-------------------------
Comment (by jeremyfelt):
In [changeset:"38041"]:
{{{
#!CommitTicketReference repository="" revision="38041"
Meta: Ensure filters are backwards compatible for pre-4.6 style meta
registration.
When using `register_meta()` with the function signature from 4.5 and
earlier, the `auth_{$type}_meta_{$key}` and `sanitize_{$type}_meta_{$key}`
filters are used. Any calls to `register_meta()` expecting this behavior
should continue to work. The new filters, which take advantage of object
subtypes, should not be added unless the proper `$args` array is passed.
See #35658.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35658#comment:111>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list