Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 11 years ago

#10630 closed defect (bug) (wontfix)

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

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

Description

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 17 years ago.

Download all attachments as: .zip

Change History (4)

@shamess
17 years ago

#1 @azaozz
17 years ago

  • Resolutionwontfix
  • Status newclosed

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
16 years ago

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

#3 @DrewAPicture
11 years ago

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