[wp-trac] [WordPress Trac] #38303: register_meta and capabilities aren't working as expected

WordPress Trac noreply at wordpress.org
Sun Oct 23 15:49:25 UTC 2016


#38303: register_meta and capabilities aren't working as expected
-------------------------------------------------+-------------------------
 Reporter:  tharsheblows                         |       Owner:
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
Component:  Role/Capability                      |  Release
 Severity:  normal                               |     Version:  4.6
 Keywords:  has-patch needs-testing has-unit-    |  Resolution:
  tests                                          |     Focuses:
-------------------------------------------------+-------------------------

Comment (by tharsheblows):

 @jorbin Do you mean like in the first diff here?
 https://core.trac.wordpress.org/attachment/ticket/38303/38303.diff

 If this isn't fixed, should the register_meta docs be updated to indicate
 that the auth_callback param is not functional for any post type other
 than posts? I can see how that could be an issue for someone who only
 tested that with posts where it would work as expected and not the other
 object types (the unit tests do this for a few things).

 It would be good to also have a preferred way for them to add in those
 apply_filters hooks that the auth_callback uses too as once this is fixed,
 they will be hooked in twice if someone adds them in themselves now.

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


More information about the wp-trac mailing list