WordPress/wp-includes
nacin bc2655affc 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: http://core.svn.wordpress.org/trunk@21132 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-26 05:33:19 +00:00
..
Text Update Text_Diff. Props simek. Fixes #9467 2010-02-19 01:25:26 +00:00
css Compress scripts/styles: 3.5-alpha-21103. 2012-06-22 00:58:22 +00:00
images Add 2x TinyMCE icons, props empireoflight, see #21019 for trunk 2012-06-22 00:31:18 +00:00
js Pinking shears 2012-06-12 19:27:41 +00:00
pomo Avoid 'Only variables should be passed by reference' warnings. Props SergeyBiryukov. see #18975 2011-10-27 20:00:09 +00:00
theme-compat Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
admin-bar.php Customizer: Redirect back to referrer. If referrer is a front end page, load that page in the customizer preview. Props nacin, koopersmith. fixes #20877 2012-06-08 18:45:12 +00:00
atomlib.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
author-template.php Add 'author' to rel attribute for get_the_author_link(). props sirzooro, CoenJacobs, Ipstenu. fixes #20047. 2012-04-27 18:17:41 +00:00
bookmark-template.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
bookmark.php Use wp_cache_add() instead of wp_cache_set() when priming the object term cache in update_object_term_cache(). Pass the real post_type to clean_object_term_cache() instead of hard-coding post. Call clean_object_term_cache() from clean_bookmark_cache(). Props leewillis77. fixes #19690 2012-01-11 21:26:18 +00:00
cache.php Prevent notices by checking if the $group key isset(). See #20004. 2012-03-02 21:57:03 +00:00
canonical.php Set $walk_dirs = true for post rewrite rule generation. See #21020 for trunk. 2012-06-25 20:41:14 +00:00
capabilities.php Fix warning when processing read_post cap. Props duck_. fixes #20917 2012-06-12 13:50:51 +00:00
category-template.php Replace commas with periods when converting ratings float values to strings, to avoid issues with localized decimal points. 2012-05-01 22:09:55 +00:00
category.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
class-IXR.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
class-feed.php Use wp_remote_retrieve_* helper functions instead of the raw HTTP response array. props aaroncampbell, fixes #17416. 2011-05-14 19:45:07 +00:00
class-http.php Handle relative urls when processing redirects. Introduce WP_Http::make_absolute_url(). Props dd32. fixes #20434 2012-05-10 21:32:02 +00:00
class-json.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
class-oembed.php ALIGN *ALL* THE THINGS! see #20324 2012-05-24 07:14:10 +00:00
class-phpass.php Fix typos in documentation (wp-includes/[a-h]). See #18560. 2011-09-03 16:02:41 +00:00
class-phpmailer.php Do not pass mail() a fourth argument when safe_mode is in effect. 2012-06-26 03:54:17 +00:00
class-pop3.php Update pop3 class. Props aaroncampbell. fixes #17064 2011-04-21 20:40:32 +00:00
class-simplepie.php Pinking shears 2012-05-03 16:41:59 +00:00
class-smtp.php Upgrade PHPMailer to 5.2.1. Props MattyRob. fixes #19887 2012-02-07 16:13:51 +00:00
class-snoopy.php Fix some encoding issues. props hakre, fixes #14735. 2010-10-27 09:54:17 +00:00
class-wp-admin-bar.php Introduce wp_is_mobile() and use it instead of $is_iphone global, see #20014 2012-04-10 01:19:30 +00:00
class-wp-ajax-response.php Make sure we are using the admin-ajax handler when we call wp_die() for WP_Ajax_Response. see #20024. 2012-02-12 19:02:07 +00:00
class-wp-atom-server.php Pinking shears 2012-05-03 16:41:59 +00:00
class-wp-customize-control.php * Introduce remove_header_image(), reset_header_image(), set_header_image(), and get_header_image_data() for Custom_Image_Header. 2012-06-10 00:32:19 +00:00
class-wp-customize-manager.php Allow switch_theme() to take a single $stylesheet argument. 2012-06-26 05:21:04 +00:00
class-wp-customize-section.php Add some missing documentation and fix a couple of typos. Props roscius. Fixes #19756. 2012-04-04 17:32:03 +00:00
class-wp-customize-setting.php Theme Customizer: Remove background_image_thumb when saving settings. fixes #20871. 2012-06-11 20:49:45 +00:00
class-wp-editor.php Allow add_editor_style() to load a child theme's editor style when the parent theme's style exists for the same filename. props SergeyBiryukov. see #21026 for trunk. 2012-06-25 20:45:05 +00:00
class-wp-error.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
class-wp-http-ixr-client.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
class-wp-theme.php Revert detection of page templates to 3.3 functionality. 2012-06-25 21:07:07 +00:00
class-wp-walker.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
class-wp-xmlrpc-server.php Combine 'Invalid term ID.' into the 'Invalid term ID' string. props pavelevap. fixes #20809. 2012-06-05 16:25:05 +00:00
class-wp.php Deprecate ancient "debugging" tools. 2012-02-17 00:02:42 +00:00
class.wp-dependencies.php Use one space, not two, after trailing punctuation. fixes #19537 2011-12-13 23:45:31 +00:00
class.wp-scripts.php If a plugin triggers the WP_Scripts constructor prior to init, fire wp_default_scripts() 2012-06-26 05:33:19 +00:00
class.wp-styles.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
comment-template.php Don't allow unfiltered HTML comments from a frame. Props nacin. fixes #20812 2012-06-01 20:47:08 +00:00
comment.php Accept a post object in clean_post_cache(). Fixes #20486. 2012-04-23 22:04:35 +00:00
compat.php Restore compat for json_decode and json_encode. fixes #18015 for trunk. 2011-07-06 23:33:05 +00:00
cron.php Use site_url() to construct the cron url. Props SergeyBiryukov. see #13449 2012-02-14 17:53:35 +00:00
default-constants.php Provide a DB fallback for keys in wp_salt(). Fall back when any secret is used more than once. Change how we detect a localized 'put your unique phrase here' -- eliminate $wp_default_secret_key and introduce $wp_secret_key_default to be added during the localized build process, not by translators. fixes #19599. 2012-01-27 18:52:20 +00:00
default-filters.php Escape editable_slug as a textarea. 2012-06-10 17:58:57 +00:00
default-widgets.php Use get_taxonomies() instead of get_object_taxonomies() in the tag cloud widget. props GautamGupta, scribu. see #20238, see #16125. 2012-03-24 14:00:52 +00:00
deprecated.php Restore the 'extra_theme_headers' filter in the deprecated get_theme_data function so that plugins/themes using this function can still access their extra headers. 2012-06-11 17:30:57 +00:00
feed-atom-comments.php Use the site's locale for the feed language. Provides the same result as language_attributes(). Removes the rss_language option. fixes #13440. see #5517. 2012-01-29 19:56:33 +00:00
feed-atom.php Use the site's locale for the feed language. Provides the same result as language_attributes(). Removes the rss_language option. fixes #13440. see #5517. 2012-01-29 19:56:33 +00:00
feed-rdf.php Add the generator element in feeds through the {rss2|atom|rdf|rss|opml}_head hooks. Fixes #6947 props sivel. 2010-02-13 16:45:16 +00:00
feed-rss.php Use the site's locale for the feed language. Provides the same result as language_attributes(). Removes the rss_language option. fixes #13440. see #5517. 2012-01-29 19:56:33 +00:00
feed-rss2-comments.php Set up the post global variable in the comment feed loops so that any calls to post related template tags work correctly. 2011-09-19 12:39:59 +00:00
feed-rss2.php Use the site's locale for the feed language. Provides the same result as language_attributes(). Removes the rss_language option. fixes #13440. see #5517. 2012-01-29 19:56:33 +00:00
feed.php split was deprecated in PHP 5.3.0, so use explode instead. Props garyc40. Fixes #16325. 2012-01-09 21:20:51 +00:00
formatting.php Shears of vigorous pinking. 2012-05-27 16:25:43 +00:00
functions.php Don't call debug_backtrace() with an argument for PHP 5.2.4, which is currently the lowest version we support. props swekitsune, kurtpayne. fixes #20953. 2012-06-25 20:41:37 +00:00
functions.wp-scripts.php User lowercase true, false, null instead of uppercase. Props c3mdigital, mfields. fixes #16302 2012-01-05 20:50:54 +00:00
functions.wp-styles.php User lowercase true, false, null instead of uppercase. Props c3mdigital, mfields. fixes #16302 2012-01-05 20:50:54 +00:00
general-template.php Update Fire browser detection. Handle silke mode. Props azaozz, nacin, georgestephanis. fixes #20014 2012-06-04 16:04:54 +00:00
http.php API for allowing cross origin resource sharing. 2012-05-15 18:46:03 +00:00
kses.php Don't allow unfiltered HTML comments from a frame. Props nacin. fixes #20812 2012-06-01 20:47:08 +00:00
l10n.php Load the admin MO file on repair.php. props SergeyBiryukov. see #21039 for trunk. 2012-06-25 20:00:31 +00:00
link-template.php Shears of vigorous pinking. 2012-05-27 16:25:43 +00:00
load.php Use is_rtl() for html direction when possible. In sites.php, language_attributes() will always exist (MU vestige). When the DB is dead, language_attributes() is worse than a simple is_rtl() check. is_rtl() exists here due to wp_load_translations_early(). see #18180. 2012-02-08 06:05:35 +00:00
locale.php Add a translator's comment. see #19924. 2012-02-06 19:43:26 +00:00
media.php Theme Customizer: Fix scrolling on iOS and Kindle Fire. props azaozz, helenyhou. fixes #20805. 2012-06-06 21:45:17 +00:00
meta.php Use the metadata API rather than raw queries and direct do_action calls. see #20417. 2012-04-11 20:02:39 +00:00
ms-blogs.php Don't update a blog's last_updated time for all post deletions. Update only when published posts are deleted. 2012-04-13 17:30:37 +00:00
ms-default-constants.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
ms-default-filters.php Don't update a blog's last_updated time for all post deletions. Update only when published posts are deleted. 2012-04-13 17:30:37 +00:00
ms-deprecated.php Introduce WP_User::exists(). see #20372 2012-04-06 19:18:45 +00:00
ms-files.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
ms-functions.php Rolling upgrade to set the welcome_user_email network-wide option via the welcome_user_msg_filter() callback. Fixes ability to save the welcome user email when no entry exists in the database. see #20116 2012-05-02 20:31:37 +00:00
ms-load.php Introduce wp_load_translations_early(), which can be used before the locale is properly loaded in order to translate early error strings. Internationalize setup-config.php -- translators no longer have a reason to modify this file. fixes #18180. 2012-01-26 20:34:27 +00:00
ms-settings.php Introduce wp_load_translations_early(), which can be used before the locale is properly loaded in order to translate early error strings. Internationalize setup-config.php -- translators no longer have a reason to modify this file. fixes #18180. 2012-01-26 20:34:27 +00:00
nav-menu-template.php Only output the class attribute in wp_nav_menu() if we have classes to add. Don't waste time on an strlen() call. props niallkennedy, fixes #20483. 2012-04-18 19:06:22 +00:00
nav-menu.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
option.php Call filters for default option values only as needed to reduce number of filter calls. Props Ott042. see #20448 2012-05-14 17:00:13 +00:00
pluggable-deprecated.php Update @deprecated. Props scribu. see #18333 2011-08-05 18:44:43 +00:00
pluggable.php Remove $wp_secret_key_default. 2012-05-02 19:29:39 +00:00
plugin.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
post-template.php Fix validation issue in get_the_password_form() caused by wpautop(). see #21018 for trunk. 2012-06-26 03:20:51 +00:00
post-thumbnail-template.php Add $wp_query parameter to update_post_thumbnail_cache(). props scribu. see #19949, fixes that ticket for 3.4. 2012-04-30 15:55:57 +00:00
post.php get_post_stati() returns post statuses not types. Props jeremyfelt. Fixes #20664. 2012-05-13 07:41:47 +00:00
query.php Pass a post object instead of ID to help preserve ancestors. Props duck_. fixes #18536 2012-06-12 23:09:27 +00:00
registration-functions.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
registration.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
rewrite.php Set $walk_dirs = true for post rewrite rule generation. See #21020 for trunk. 2012-06-25 20:41:14 +00:00
rss-functions.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
rss.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
script-loader.php If a plugin triggers the WP_Scripts constructor prior to init, fire wp_default_scripts() 2012-06-26 05:33:19 +00:00
shortcodes.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
taxonomy.php Consolodate some strings. Props pavelevap. fixes #20809 2012-06-01 19:05:30 +00:00
template-loader.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
template.php Remove reference to a global eliminated long ago. props tamlyn, fixes #20668. 2012-05-24 07:06:13 +00:00
theme.php Allow switch_theme() to take a single $stylesheet argument. 2012-06-26 05:21:04 +00:00
update.php Fix string offset PHP 5.4 error by normalizing $user_count to always be an integer. props ericmann. see #20966 for trunk. 2012-06-25 19:40:16 +00:00
user.php Use maybe_serialize() where appropriate. fixes #19617. 2012-04-27 15:57:51 +00:00
vars.php Update Fire browser detection. Handle silke mode. Props azaozz, nacin, georgestephanis. fixes #20014 2012-06-04 16:04:54 +00:00
version.php Compress scripts/styles: 3.5-alpha-21103. 2012-06-22 00:58:22 +00:00
widgets.php One newline is enough. 2012-01-05 20:10:39 +00:00
wlwmanifest.xml Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00
wp-db.php Escape special characters when outputting DB failures. see #13839. 2012-04-16 21:55:47 +00:00
wp-diff.php Lose EOF ?>. Clean up EOF newlines. fixes #12307 2012-01-08 17:01:11 +00:00