[wp-trac] [WordPress Trac] #35658: Provide additional data for registered meta through register_meta()
WordPress Trac
noreply at wordpress.org
Wed Jul 6 17:57:31 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 [attachment:35658.30.diff], make sure `$object_subtype` is defined
before attempting to use it.
In [attachment:35658.31.diff], we do not need to pass `$meta_key` to
`get_metadata()` as it is empty.
In [attachment:35658.32.diff], add initial tests for `register_meta()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35658#comment:96>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list