[wp-trac] [WordPress Trac] #23861: Using current_user_can() inside a plugin causes a fatal error

WordPress Trac noreply at wordpress.org
Thu Apr 4 03:05:20 UTC 2013


#23861: Using current_user_can() inside a plugin causes a fatal error
--------------------------+----------------------
 Reporter:  PhilippH      |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Plugins       |     Version:  3.5.1
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |
--------------------------+----------------------

Comment (by nacin):

 (A note, current_user_can() isn't pluggable, but it requires
 wp_get_current_user(), which is.)

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


More information about the wp-trac mailing list