Opened 4 years ago

Closed 3 years ago

Last modified 2 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: 2.9
Component: JavaScript Version: 2.8.4
Severity: minor Keywords: has-patch
Cc: shamess

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

Download all attachments as: .zip

Change History (3)

shamess4 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);

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

Note: See TracTickets for help on using tickets.