WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 4 years ago

Last modified 3 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
Milestone: 2.9 Priority: normal
Severity: minor Version: 2.8.4
Component: JavaScript Keywords: has-patch
Focuses: Cc:

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

Download all attachments as: .zip

Change History (3)

shamess5 years ago

comment:1 azaozz4 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);

comment:2 lloydbudd3 years ago

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

Note: See TracTickets for help on using tickets.