[wp-trac] [WordPress Trac] #38323: Reconsider $object_subtype handling in `register_meta()`
WordPress Trac
noreply at wordpress.org
Wed Dec 28 22:16:12 UTC 2016
#38323: Reconsider $object_subtype handling in `register_meta()`
-------------------------------------------------+-------------------------
Reporter: flixos90 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
Component: Options, Meta APIs | Review
Severity: normal | Version:
Keywords: has-patch needs-unit-tests 2nd- | Resolution:
opinion | Focuses:
-------------------------------------------------+-------------------------
Comment (by flixos90):
Replying to [comment:4 tharsheblows]:
> I think this works already, at least for post types.
`register_meta()` currently works globally across all post types, but it
does not support registering meta for individual post types, and that is
what this ticket is about.
The unit tests you provided are definitely helpful, but they test whether
globally registered post meta (globally here means for all post types)
works on a specific custom post type. I suppose we had a misunderstanding
here, my ticket description should probably have been more clear.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38323#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list