Make WordPress Core

Opened 11 years ago

Closed 10 years ago

Last modified 10 years ago

#5190 closed defect (bug) (wontfix)

Widgets code run before admin_head hook is called

Reported by: omry Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.3
Component: Administration Keywords:
Focuses: Cc:


When opening the widgets page in the administration section, the widgets are initialized before admin_head is called. many plugin initializes in an admin_head callback, and in some cases the widgets initialization depends on the plugin initialization.

Logically it's also appropriate to call admin_head action first.

Change History (5)

#1 @omry
11 years ago

  • Component changed from General to Administration

#2 @filosofo
11 years ago

omry, what is an example of a plugin that this creates a problem for? Shouldn't it be initializing at 'init' anyways?

#3 @Viper007Bond
11 years ago

  • Version set to 2.3

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().

#4 @technosailor
10 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

Agreed. Let's close this?

#5 @thee17
10 years ago

  • Milestone 2.9 deleted
Note: See TracTickets for help on using tickets.