[wp-trac] [WordPress Trac] #35658: Provide additional data for registered meta through register_meta()
WordPress Trac
noreply at wordpress.org
Mon Jul 18 20:41:30 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):
Replying to [comment:143 ocean90]:
> It would be consistent with `register_taxonomy()` and
`register_post_type()`. With this change we also define that our
`$defaults` are always part of `$args` and can't be removed, which seems
to be OK?
I think so. We should be able to rely on the default arg keys being
available. Anyone wanting to remove a callback (or other argument) can
just set it back to something non callable.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35658#comment:144>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list