[wp-trac] [WordPress Trac] #35658: Provide additional data for registered meta through register_meta()
WordPress Trac
noreply at wordpress.org
Wed Jul 13 04:37:38 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):
[attachment:35658.38.diff] is an iteration on [attachment:35658.37.2.diff]
and includes tests for old style `register_meta()` uses to make sure the
proper filter is added:
* `register_meta( 'post', 'key', null, 'auth_callback' );`
* `register_meta( 'post', 'key', 'sanitize_callback' );`
* `register_meta( 'post', 'key', 'sanitize_callback', 'auth_callback' );`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35658#comment:110>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list