[wp-trac] [WordPress Trac] #38323: Reconsider $object_subtype handling in `register_meta()`

WordPress Trac noreply at wordpress.org
Mon Feb 6 18:46:32 UTC 2017


#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 kadamwhite):

 > or when the post type is registered

 Additionally, I think that specifying the type during `register_meta`
 feels better to me than specifying the meta when registering the type,
 since the type has to exist before `register_meta` is called, but you do
 not necessarily have to `register_meta` if you have a custom post type.
 That is to say, it doesn't make sense to me to say "register CPT with
 whitelisted keys; don't register any meta", whereas "register CPT with
 ability to have meta; don't register any meta" makes sense (because
 there's other non-register_meta ways to use custom fields).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38323#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list