[wp-trac] [WordPress Trac] #22415: media-upload.php should check whether current user can edit a particular post type

WordPress Trac noreply at wordpress.org
Mon Nov 12 00:50:24 UTC 2012


#22415: media-upload.php should check whether current user can edit a particular
post type
-------------------------------+------------------------------
 Reporter:  danielbachhuber    |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Role/Capability    |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------
Changes (by nacin):

 * keywords:   => reporter-feedback
 * component:  General => Role/Capability


Comment:

 'edit_post' maps internally to cap->edit_post for the post type of the
 post being passed. Could you give an example of where this would fail?

 If custom post types supported meta capabilities in 3.0, we probably
 wouldn't even have meta capabilities on the cap object. But in 3.1, any
 inconsistencies were corrected and they work the same.

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


More information about the wp-trac mailing list