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

WordPress Trac noreply at wordpress.org
Thu Jun 30 16:34:47 UTC 2016


#35658: Provide additional data for registered meta through register_meta()
-------------------------------------------------+-------------------------
 Reporter:  jeremyfelt                           |       Owner:  helen
     Type:  task (blessed)                       |      Status:  accepted
 Priority:  normal                               |   Milestone:  4.6
Component:  Options, Meta APIs                   |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  needs-unit-tests needs-testing has-  |     Focuses:
  patch rest-api                                 |
-------------------------------------------------+-------------------------

Comment (by helen):

 Replying to [comment:75 helen]:
 > It looks like the fallback auth callback doesn't get applied for the old
 registration method anymore (I could be wrong, also this needs a test),
 and I think the logic could be easier to follow.

 So I am correct that this is the case; however, in looking at tests,
 `map_meta_cap()` itself also falls back if nothing is hooked on for auth
 so nothing is broken practically speaking. That said, the code is still
 incorrect in its intention and is confusing to read, so going to commit
 that fix, and then look at the new feedback in this ticket.

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


More information about the wp-trac mailing list