[wp-trac] [WordPress Trac] #35658: Provide additional data for registered meta through register_meta()
WordPress Trac
noreply at wordpress.org
Thu Jul 7 01:03:12 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):
As @sc0ttkclark mentioned earlier in #core, something like `register_meta(
'post', 'my_key', null, 'auth_callback' );` does not currently work as
expected. Instead of adding the old auth filter and skipping the old
sanitize filter, it adds no filter and returns a `WP_Error` about not
providing an object subtype.
[attachment:35658.37.diff] treats the old auth callback argument the same
as the old sanitize callback argument. If it is provided and callable,
then we should ignore that any array of arguments was passed. No tests yet
for this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35658#comment:105>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list