[wp-trac] [WordPress Trac] #25240: current_user_can( $capability, $args ) returns true for invalid $args (post ID)

WordPress Trac noreply at wordpress.org
Fri Sep 6 14:23:16 UTC 2013


#25240: current_user_can( $capability, $args ) returns true for invalid $args (post
ID)
-------------------------------------------+------------------------------
 Reporter:  akshay_raje                    |       Owner:
     Type:  defect (bug)                   |      Status:  new
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  Role/Capability                |     Version:  3.6
 Severity:  normal                         |  Resolution:
 Keywords:  2nd-opinion reporter-feedback  |
-------------------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:  2nd-opinion => 2nd-opinion reporter-feedback


Comment:

 Could not reproduce.

 `var_dump( current_user_can( 'edit_post', -1 ) )` returns `bool(false)`
 for me. I do, however, get the notices mentioned in #13905.

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


More information about the wp-trac mailing list