[wp-trac] Re: [WordPress Trac] #5190: Widgets code run before admin_head hook is called

WordPress Trac wp-trac at lists.automattic.com
Sat Oct 13 12:57:41 GMT 2007


#5190: Widgets code run before admin_head hook is called
----------------------------+-----------------------------------------------
 Reporter:  omry            |        Owner:  anonymous
     Type:  defect          |       Status:  new      
 Priority:  normal          |    Milestone:  2.5      
Component:  Administration  |      Version:  2.3      
 Severity:  normal          |   Resolution:           
 Keywords:                  |  
----------------------------+-----------------------------------------------
Changes (by Viper007Bond):

  * version:  => 2.3

Comment:

 `admin_head` should not be used to trigger events. It's only purpose is to
 output stuff for the `<head>`.

 Instead, as filosofo said, use `init` and `is_admin()`.

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


More information about the wp-trac mailing list