Make WordPress Core

Opened 15 years ago

Closed 14 years ago

Last modified 9 years ago

#10630 closed defect (bug) (wontfix)

Patch to make wp_enqueue_script work on login_head (wp-login.php)

Reported by: shamess's profile shamess Owned by: azaozz's profile azaozz
Milestone: Priority: normal
Severity: minor Version: 2.8.4
Component: JavaScript Keywords: has-patch
Focuses: Cc:


At the moment, all wp_enqueue_script'd scripts are ignored. The fix is pretty simple: just add

add_action('login_head', 'wp_print_head_scripts', 1);
add_action('login_head', 'wp_enqueue_scripts', 1);

to default-filters.php.

It's actually just the wp_print_head_scripts action that made my tests work, but I added wp_enqueue_scripts because it looked like it belonged there. Someone might want to dig into if it really should be there.

Attachments (1)

login-head.diff (610 bytes) - added by shamess 15 years ago.

Download all attachments as: .zip

Change History (4)

15 years ago

#1 @azaozz
14 years ago

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

This can be done by the plugin when needed

add_action('login_head', 'wp_enqueue_scripts', 1);
add_action('login_head', 'wp_print_head_scripts', 2);

#2 @lloydbudd
13 years ago

Solved with it's own hooks login_enqueue_scripts in #16586.

#3 @DrewAPicture
9 years ago

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