[wp-trac] [WordPress Trac] #23226: Always use meta caps directly instead of going through the post_type_object->caps array

WordPress Trac noreply at wordpress.org
Mon Jul 8 20:05:43 UTC 2013


#23226: Always use meta caps directly instead of going through the
post_type_object->caps array
-------------------------------------+---------------------
 Reporter:  markjaquith              |       Owner:  nacin
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  3.6
Component:  Role/Capability          |     Version:
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |
-------------------------------------+---------------------
Changes (by nacin):

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


Comment:

 In [changeset:"24593"]:
 {{{
 #!CommitTicketReference repository="" revision="24593"
 Use meta caps edit_post, read_post, and delete_post directly, rather than
 consulting the post type object. map_meta_cap() handles that for us. props
 markjaquith, kovshenin. fixes #23226.
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/23226#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list