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

WordPress Trac noreply at wordpress.org
Wed Jul 13 21:43:19 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: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.

 > As we are in Beta, it's a common thing to change something like this,
 but I'm worried especially because this first way of doing it has already
 been made public in the dev note.

 While not ideal, I think we're okay to change directions in beta at some
 level. I'd hope that plugin devs are testing and following the changes,
 but not actually shipping new versions of plugins until at least RC1.

 > Actually, I think it might be useful to add wrapper functions for
 `register_meta()` for a specific object type. [...] that's something else
 though, let's focus on what `register_meta()` will look like first.

 Yeah, I think there are several possibilities for the future. It's also
 possible that an object similar to the one discussed in previous comments
 starts to be realistic. This first iteration should be as bare bones as
 possible while providing the benefit we need.

 > Sorry for all these points in one comment, but I wanted to get this off
 my chest, especially since I won't be able to attend tomorrow's meeting.
 :(

 No worries. These are great points, thanks for chiming in here!

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


More information about the wp-trac mailing list