[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
Sun Dec 9 23:59:22 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:           
 Severity:  blocker         |   Resolution:  invalid  
 Keywords:                  |  
----------------------------+-----------------------------------------------
Changes (by DD32):

  * keywords:  needs-patch =>
  * status:  new => closed
  * version:  2.3 =>
  * resolution:  => invalid
  * milestone:  2.3.2 =>

Comment:

 I cant see any reason for pluggable.php to be loaded before
 capabilities.php,

 If you follow coding guidelines and use the hook as westi mentioned, there
 are no issues. current_user_can() ''shouldnt'' be needed until all plugins
 and pluggable.php is loaded anyway.

 Closing as invalid.

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


More information about the wp-trac mailing list