[wp-trac] [WordPress Trac] #10630: Patch to make wp_enqueue_script work on login_head (wp-login.php)
WordPress Trac
wp-trac at lists.automattic.com
Sun Aug 16 18:43:39 UTC 2009
#10630: Patch to make wp_enqueue_script work on login_head (wp-login.php)
--------------------------+-------------------------------------------------
Reporter: shamess | Owner: azaozz
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8.5
Component: JavaScript | Version: 2.8.4
Severity: minor | Keywords: has-patch
--------------------------+-------------------------------------------------
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10630>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list