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

WordPress Trac noreply at wordpress.org
Mon Mar 25 14:07:52 UTC 2013


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

Comment (by PhilippH):

 The line to add to wp-content/plugins/hello.php shoud be:
 echo current_user_can("switch_themes");

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


More information about the wp-trac mailing list