[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:05:36 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           |   Keywords:  has-patch 2nd-opinion
-----------------------------+-----------------------------------
 The function current_user_can( $capability, $args ) currently returns true
 even if we pass a junk / non-existent post ID to it.

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


More information about the wp-trac mailing list