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

WordPress Trac noreply at wordpress.org
Wed Nov 9 03:41:10 UTC 2016


#38303: register_meta and capabilities aren't working as expected
----------------------------------------------------+---------------------
 Reporter:  tharsheblows                            |       Owner:  rmccue
     Type:  defect (bug)                            |      Status:  closed
 Priority:  normal                                  |   Milestone:  4.7
Component:  Role/Capability                         |     Version:  4.6
 Severity:  normal                                  |  Resolution:  fixed
 Keywords:  has-patch needs-testing has-unit-tests  |     Focuses:
----------------------------------------------------+---------------------
Changes (by rmccue):

 * owner:   => rmccue
 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"39179"]:
 {{{
 #!CommitTicketReference repository="" revision="39179"
 Roles/Capabilities: Add meta-caps for comment, term, and user meta.

 Additionally, use these meta-caps in the REST API endpoints.

 Previously, register_meta()'s auth_callback had no effect for non-post
 meta. This introduces `{add,edit,delete}_{comment,term,user}_meta` meta-
 caps to match the existing post meta capabilities. These are currently
 only used in the REST API.

 Props tharsheblows, boonebgorges.
 Fixes #38303, fixes #38412.
 }}}

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


More information about the wp-trac mailing list