[wp-trac] [WordPress Trac] #23377: map_meta_cap() throws error from has_cap() from current_user_can()

WordPress Trac noreply at wordpress.org
Sat Sep 14 18:55:33 UTC 2013


#23377: map_meta_cap() throws error from has_cap() from current_user_can()
------------------------------------+------------------------
 Reporter:  wpsmith                 |       Owner:
     Type:  defect (bug)            |      Status:  closed
 Priority:  normal                  |   Milestone:
Component:  Role/Capability         |     Version:
 Severity:  normal                  |  Resolution:  duplicate
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------------
Changes (by nacin):

 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 `current_user_can( 'edit_page' )` is wrong. `edit_page` and `edit_post`
 require a second argument.

 Duplicate of #13905.

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


More information about the wp-trac mailing list