If a plugin triggers the WP_Scripts constructor prior to init, fire wp_default_scripts()

then and again on init.

Only add our localized strings once we've fired init, in case we do have the situation
where we fire wp_default_scripts() twice.

Fixes issues where plugins or themes try to enqueue a default script handle prior to
init. Does not allow #19959 to regress.

see #20971 for trunk.



git-svn-id: https://develop.svn.wordpress.org/trunk@21132 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2012-06-26 05:33:19 +00:00
parent f3e45be558
commit b57365f7ff
3 changed files with 30 additions and 27 deletions

View File

@@ -51,6 +51,11 @@ function is_lighttpd_before_150() {}
*/
function add_action() {}
/**
* @ignore
*/
function did_action() {}
/**
* @ignore
*/