[wp-trac] [WordPress Trac] #35658: Provide additional data for registered meta through register_meta()
WordPress Trac
noreply at wordpress.org
Mon Jul 18 21:15:39 UTC 2016
#35658: Provide additional data for registered meta through register_meta()
-------------------------------------------------+-------------------------
Reporter: jeremyfelt | Owner: helen
Type: task (blessed) | Status: closed
Priority: high | Milestone: 4.6
Component: Options, Meta APIs | Version:
Severity: normal | Resolution: fixed
Keywords: needs-unit-tests needs-testing has- | Focuses:
patch rest-api needs-dev-note |
-------------------------------------------------+-------------------------
Changes (by jeremyfelt):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"38095"]:
{{{
#!CommitTicketReference repository="" revision="38095"
Meta: Remove object subtype handling from `register_meta()`.
Registration is now based solely on object type, which allows the code
around this to be simplified significantly.
In the process of making this adjustment:
* `register_meta()`, `unregister_meta_key()`, `get_registered_metadata()`,
and `registered_meta_key_exists()` no longer return `WP_Error` objects.
* The recently introduced `wp_object_type_exists()` function and the
restriction on object type has been removed.
Note: No guarantee of uniqueness is made across object subtypes.
Registered meta keys should be uniquely prefixed to avoid conflict.
Fixes #35658.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35658#comment:145>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list