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

WordPress Trac noreply at wordpress.org
Wed Jul 13 21:50:28 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 flixos90):

 Replying to [comment:118 jeremyfelt]:
 > Replying to [comment:117 flixos90]:
 > > I'm curious why we need to remove the `object_subtype` key from the
 array. Couldn't we support both ways of specifying the subtype?
 >
 > I'd prefer providing one way of doing it for 4.6. Otherwise we're
 looking at more code and more tests for a piece that we're still working
 through.

 I was working on [attachment:35658.45.diff] before reading your response.
 It's just 4 additional lines of code (1060-1063) to keep it compatible. :)
 Another thing I adjusted in this patch is remove the `object_subtype` key
 from the doc block.

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


More information about the wp-trac mailing list