[wp-trac] [WordPress Trac] #21091: wp_capabilities typo?

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 28 03:13:19 UTC 2012


#21091: wp_capabilities typo?
--------------------------+-----------------------------
 Reporter:  havahula      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  3.4
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 on the current version of wp-admin/media-upload.php there are now several
 checks to ensure that the user can edit the post using current_user_can(
 'edit_post', $_REQUEST['post_id'] ). it appears that there is a typo as
 the capability as it is written currently is 'edit_post' and it should be
 'edit_posts', correct?

 I noticed this on a site I manage where contributors have been given the
 capability to upload media but are no longer able to unless media-
 upload.php is edited to match their built-in capability.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21091>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list