[wp-trac] [WordPress Trac] #35658: Provide additional data for registered meta through register_meta()

WordPress Trac noreply at wordpress.org
Wed Jul 20 19:38:36 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                  |
-------------------------------------------------+-------------------------

Comment (by jtsternberg):

 So, why are we introducing yet another global, `$wp_meta_keys`, instead of
 using a registry class of some sort?

 A registry with some kind of `register`/`get`/`check`/`has_collision`,
 etc, would be hugely beneficial IMO, and we can keep the array protected.
 Also protects some of the workings of the internal API as we can keep the
 methods protected, which means we won't have as much back-compat to worry
 about as we progress with the `register_meta` api.

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


More information about the wp-trac mailing list