WordPress/wp-includes
nacin 2abd3ad571 Theme Customizer: Validate themes with more than just an existence check.
* The current theme goes through validate_current_theme().
 * If doing a preview of a different theme, we check theme->errors().

Also:
 * Don't attach previewing hooks when previewing the current theme.
Aside from being unnecessary, this prevents issues with a theme with
the error of theme_parent_invalid.
 * Call send_origin_headers() earlier, to allow wp_die( '0' ) to properly
be returned in a domain mapping situation.
 * Fix the 'Save & Activate' message on themes.php.

fixes #20921.



git-svn-id: http://core.svn.wordpress.org/trunk@21069 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-12 18:39:16 +00:00
..
Text
css Move customize-controls RTL CSS to wp-admin. see #20785. 2012-05-30 21:12:36 +00:00
images Retina display icons: add 2x sprite for the toolbar, props chexee, fixes #20293 2012-05-16 23:55:38 +00:00
js Compress scripts/styles: 3.4-RC2-21055. 2012-06-11 21:28:44 +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 Only look for public post types in redirect_guess_404_permalink() when no post type query var is present. props jeremyfelt. fixes #19693. 2012-05-02 17:39:43 +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 Pinking shears 2012-05-03 16:41:59 +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
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 Theme Customizer: Validate themes with more than just an existence check. 2012-06-12 18:39:16 +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 Fix adding of parent theme's editor-style before child theme's, props SergeyBiryukov, see #19437 2012-04-02 22:26:11 +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 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
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 Pinking shears 6-20000 2012-02-27 19:46:52 +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
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 Pinking shears 2012-05-03 16:41:59 +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 Exclude admin pot files when calculating the list of installed languages in get_available_languages(). fixes #20676 2012-05-14 17:58:06 +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 Do not specify background-image: none when a user removes a custom background 2012-06-11 21:25:05 +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 Disambiguate menu_order. Props markjaquith. fixes #20711 2012-05-21 19:50:58 +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 Remove wp-register.php. 2012-04-25 20:49:57 +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 Customizer: Gravefully handle cookie expipration. Prompt for log in in the preview. Props ocean90, koopersmith, nacin. fixes #20876 2012-06-08 19:22:11 +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 Fallback to /themes when there is no theme root. Props duck_. see #20919 2012-06-12 15:57:11 +00:00
update.php Use correct filter name in wp_update_themes(): s/load-plugins/load-themes/. See r19683, #18876. 2012-03-24 14:07:12 +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.4-RC3-21068. 2012-06-12 17:58:23 +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