[wp-trac] Re: [WordPress Trac] #5265: current_user_can() can run before wp_get_current_user() is defined

WordPress Trac wp-trac at lists.automattic.com
Mon Dec 10 02:48:41 GMT 2007


#5265: current_user_can() can run before wp_get_current_user() is defined
----------------------------+-----------------------------------------------
 Reporter:  Viper007Bond    |        Owner:  anonymous
     Type:  defect          |       Status:  closed   
 Priority:  normal          |    Milestone:           
Component:  Administration  |      Version:  2.3.1    
 Severity:  normal          |   Resolution:  invalid  
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by DD32):

 Replying to [comment:6 Viper007Bond]:
 > Replying to [comment:5 DD32]:
 > > I cant see any reason for pluggable.php to be loaded before
 capabilities.php,
 >
 > Because `capabilities.php` is calling a function defined in
 `pluggable.php` ?

 I meant in normal operation, {{{current_user_can()}}} wouldnt be called
 until after plugins and {{{pluggable.php}}} had been loaded.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5265#comment:7>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list