WordPress/wp-includes
Scott Taylor da05f7435b For unit tests that call wpmu_create_blog(), Blog factory, or installation code that attempts to clear transients: suppress database errors on setUp and restore on tearDown.
There are a few places in core that were preventing this from working by explicity setting `$wpdb->suppress_errors` to `false`. Instead, they should inherit the value that existed before errors were suppressed.

This allows Multisite unit tests to run without explosive database errors, and allows `$wpdb->suppress_errors` to be overridden all the way down the chain.

Fixes #26102.

Built from https://develop.svn.wordpress.org/trunk@26252


git-svn-id: http://core.svn.wordpress.org/trunk@26158 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-18 20:45:11 +00:00
..
certificates Move a certificate higher in the file (end to start) so that PHP 5.2.x (OpenSSL 0.9.8j and earlier) can parse the file correctly. See #25007 2013-09-23 13:59:11 +00:00
css Improvements to the modal media uploader on mobile in landscape orientation. 2013-11-18 20:07:10 +00:00
fonts Say hello to a fresh new look for the WordPress admin. 2013-11-10 00:27:10 +00:00
ID3 ID3 1.9.7. 2013-07-13 00:37:36 +00:00
images Add spinner images that were inadvertently left out of [26072]. see #25858. 2013-11-10 00:40:09 +00:00
js Fix JSHint errors in shortcode.js. 2013-11-15 21:25:10 +00:00
pomo
SimplePie SimplePie: Fix use of DOMElement as array. 2013-09-11 04:02:10 +00:00
Text Declare Text_Diff::trimNewlines() as static. Upstream is not back compat. props aaroncampbell. fixes #24372. 2013-05-25 22:10:53 +00:00
theme-compat Use site_url() in theme-compat. 2013-10-02 21:17:09 +00:00
admin-bar.php Bring in the responsive component of MP6. See #25858. 2013-11-13 18:00:10 +00:00
atomlib.php
author-template.php Inline documentation for hooks in wp-includes/author-template.php. 2013-09-13 19:25:10 +00:00
bookmark-template.php Inline documentation for hooks in wp-includes/bookmark-template.php. 2013-09-20 23:09:09 +00:00
bookmark.php Add some missing braces to get_bookmarks() which was causing an early return. Introduced in [25934]. See #25468. Fixes #25874 2013-11-08 02:20:10 +00:00
cache.php Always pass integer expirations to cache backends. 2013-09-16 17:43:09 +00:00
canonical.php Spell out duplicate hook locations. 2013-10-24 22:59:20 +00:00
capabilities.php Inline documentation for hooks in wp-includes/capabilities.php. 2013-11-13 04:39:08 +00:00
category-template.php 3.7 regression from [25119]: Have in_category() return false when the first argument is empty. 2013-10-26 02:54:10 +00:00
category.php Revert r25824:25875 from the core.svn.wordpress.org repository. 2013-10-25 02:29:52 +00:00
class-feed.php Inline documentation for hooks in wp-includes/class-feed.php. 2013-10-08 20:07:08 +00:00
class-http.php Revert r25824:25875 from the core.svn.wordpress.org repository. 2013-10-25 02:29:52 +00:00
class-IXR.php
class-json.php Patch Services_JSON to use the proper function name and avoid a fatal error. see #24210. 2013-07-08 16:55:34 +00:00
class-oembed.php Inline documentation for hooks in wp-includes/class-oembed.php. 2013-10-07 23:57:10 +00:00
class-phpass.php Add strict check to phpass's CheckPassword() method to avoid issues when the method is improperly called. 2013-06-21 01:21:12 +00:00
class-phpmailer.php Backport a fix for qmail from PHPMailer upstream. 2013-10-03 03:00:09 +00:00
class-pop3.php
class-simplepie.php
class-smtp.php
class-snoopy.php Use correct variable in the deprecated and abandoned Snoopy HTTP client. see #24210. 2013-07-08 17:17:46 +00:00
class-wp-admin-bar.php Bring in the responsive component of MP6. See #25858. 2013-11-13 18:00:10 +00:00
class-wp-ajax-response.php
class-wp-customize-control.php Remove /extend/ from URLs to wordpress.org/plugins, /themes, and /mobile, as those are all now top-level. see #24389. 2013-05-22 21:01:57 +00:00
class-wp-customize-manager.php Avoid empty header color after enabling header text via Customizer. props obenland, fixes #23761. 2013-07-12 20:41:46 +00:00
class-wp-customize-section.php Actually display customizer section descriptions in a meaningful way. props obenland, helen. fixes #24392. 2013-08-23 16:18:10 +00:00
class-wp-customize-setting.php
class-wp-editor.php Add jshintrc to qunit. 2013-10-30 14:39:10 +00:00
class-wp-embed.php Spell out duplicate hook locations. 2013-10-24 22:59:20 +00:00
class-wp-error.php Correct inline docs for is_wp_error(). props johnbillion. fixes #24637. 2013-06-24 18:23:45 +00:00
class-wp-http-ixr-client.php
class-wp-image-editor-gd.php Improve inline documentation for the multi_resize() method in WP_Image_Editor, WP_Image_Editor_GD, and WP_Image_Editor_Imagick. 2013-10-08 17:19:09 +00:00
class-wp-image-editor-imagick.php Improve inline documentation for the multi_resize() method in WP_Image_Editor, WP_Image_Editor_GD, and WP_Image_Editor_Imagick. 2013-10-08 17:19:09 +00:00
class-wp-image-editor.php Improve inline documentation for the multi_resize() method in WP_Image_Editor, WP_Image_Editor_GD, and WP_Image_Editor_Imagick. 2013-10-08 17:19:09 +00:00
class-wp-theme.php Make Twenty Fourteen the default theme. props markmcwilliams. fixes #25702. 2013-11-06 20:02:09 +00:00
class-wp-walker.php Revert r25824:25875 from the core.svn.wordpress.org repository. 2013-10-25 02:29:52 +00:00
class-wp-xmlrpc-server.php Use get_current_site() instead of the $current_site global when possible. 2013-11-13 03:23:10 +00:00
class-wp.php WP_UnitTestCase::go_to() tried its best to clean up global space, but ultimately fell short. Because it was blowing away WP every time it was called, it was dropping all the query vars that were registered for custom taxonomies and custom post types (ouch). 2013-11-04 22:47:10 +00:00
class.wp-dependencies.php Inline documentation for WP_Dependencies and _WP_Dependency classes. 2013-09-20 19:54:10 +00:00
class.wp-scripts.php If the script_loader_src filter returns nothing, bail instead of printing <script src="">. 2013-09-16 22:12:09 +00:00
class.wp-styles.php Use CSSJanus via a Grunt task to generate right-to-left CSS. 2013-11-12 21:19:15 +00:00
comment-template.php Add jshintrc to qunit. 2013-10-30 14:39:10 +00:00
comment.php Fix docblock formatting. fixes #25893. 2013-11-11 13:32:10 +00:00
compat.php
cron.php
date.php Add description for 'dayofyear' and 'dayofweek' arguments in WP_Date_Query. 2013-11-16 08:21:10 +00:00
default-constants.php Make Twenty Fourteen the default theme. props markmcwilliams. fixes #25702. 2013-11-06 20:02:09 +00:00
default-filters.php Pass the taxonomy around to relevant nav menu actions to avoid arbitrarily deleting all items with menu-item-type of taxonomy. Adds unit test for wp_get_associated_nav_menu_items(). 2013-08-29 16:45:10 +00:00
default-widgets.php More dash updates. 2013-11-15 22:23:09 +00:00
deprecated.php Mark _search_terms_tidy() as deprecated in 3.7. see #7394. 2013-09-28 08:25:09 +00:00
feed-atom-comments.php Spell out duplicate hook locations. 2013-10-24 22:59:20 +00:00
feed-atom.php Inline documentation for hooks in wp-includes/feed-atom.php. 2013-09-20 22:50:10 +00:00
feed-rdf.php Revert r25824:25875 from the core.svn.wordpress.org repository. 2013-10-25 02:29:52 +00:00
feed-rss.php Revert r25824:25875 from the core.svn.wordpress.org repository. 2013-10-25 02:29:52 +00:00
feed-rss2-comments.php Revert r25824:25875 from the core.svn.wordpress.org repository. 2013-10-25 02:29:52 +00:00
feed-rss2.php Inline documentation for hooks in wp-includes/feed-rss2.php. 2013-09-20 22:27:09 +00:00
feed.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
formatting.php Don't place smilies inside of pre or code tags. Don't skip smilie after a smilie with an 8 in it. Fix regular expression used for smiley translations to work when there is only one registered emoticon. 2013-11-15 02:46:10 +00:00
functions.php Use get_current_site() instead of the $current_site global in wp-admin/admin-header.php and is_main_network(). 2013-11-16 13:46:10 +00:00
functions.wp-scripts.php Inline documentation for hooks in wp-includes/functions.wp-scripts.php. 2013-10-27 17:51:09 +00:00
functions.wp-styles.php Inline documentation for hooks in wp-includes/functions.wp-styles.php. 2013-10-27 17:59:09 +00:00
general-template.php Remove SCRIPT_DEBUG reference from register_admin_color_schemes(). 2013-11-14 00:03:10 +00:00
http.php Use get_current_site() instead of the $current_site global when possible. 2013-11-13 03:23:10 +00:00
kses.php Allow the value attribute for list items processed by kses. 2013-09-16 20:49:10 +00:00
l10n.php Add jshintrc to qunit. 2013-10-30 14:39:10 +00:00
link-template.php Use get_current_site() instead of the $current_site global when possible. 2013-11-13 03:23:10 +00:00
load.php Inline documentation for hooks in wp-includes/load.php. 2013-09-16 18:30:10 +00:00
locale.php Better description for WP_Locale::_strings_for_pot(). props dimadin. fixes #25937. 2013-11-13 14:01:09 +00:00
media-template.php Spell out duplicate hook locations. 2013-10-24 22:59:20 +00:00
media.php Spell out duplicate hook locations. 2013-10-24 22:59:20 +00:00
meta.php Produce proper CAST for DECIMAL and NUMERIC in Meta Query. Adds a bunch of unit tests. 2013-11-08 23:11:08 +00:00
ms-blogs.php Use get_current_site() instead of the $current_site global when possible. 2013-11-13 03:23:10 +00:00
ms-default-constants.php Use get_current_site() instead of the $current_site global when possible. 2013-11-13 03:23:10 +00:00
ms-default-filters.php Live network counts of users and sites for small networks. 2013-09-25 16:21:09 +00:00
ms-deprecated.php Introduce wp_get_sites(), a long-awaited replacement for get_blog_list(). 2013-09-14 21:13:10 +00:00
ms-files.php Use stripslashes() instead of wp_unslash() in ms-files.php to avoid formatting.php dependency. props devesine, fixes #24374. 2013-05-20 20:20:22 +00:00
ms-functions.php For unit tests that call wpmu_create_blog(), Blog factory, or installation code that attempts to clear transients: suppress database errors on setUp and restore on tearDown. 2013-11-18 20:45:11 +00:00
ms-load.php Use get_current_site() instead of the $current_site global when possible. 2013-11-13 03:23:10 +00:00
ms-settings.php
nav-menu-template.php Spell out duplicate hook locations. 2013-10-24 22:59:20 +00:00
nav-menu.php Introduce wp_using_ext_object_cache() - mimic wp_suspend_cache_invalidation() and discourage direct access to $_wp_using_ext_object_cache, cleaning up importing of globals in functions and provides function to modify that global. Loads the packaged object cache when an external cache hasn't been loaded or doesn't contain wp_cache_init(). 2013-09-06 18:10:09 +00:00
option.php In update_option(), call the update_option hook before the DB update. 2013-10-26 02:57:09 +00:00
pluggable-deprecated.php Remove /extend/ from URLs to wordpress.org/plugins, /themes, and /mobile, as those are all now top-level. see #24389. 2013-05-22 21:01:57 +00:00
pluggable.php Remove redundant cleanup of PHPMailer addresses in wp_mail(). 2013-11-13 03:45:11 +00:00
plugin.php Initialize the filter globals. 2013-09-24 19:05:10 +00:00
post-formats.php Allow has_post_format() to accept an array of formats to check. props ericmann. fixes #17320. 2013-07-28 20:48:09 +00:00
post-template.php Spell out duplicate hook locations. 2013-10-24 22:59:20 +00:00
post-thumbnail-template.php Inline documentation for hooks in wp-includes/post-thumbnail-template.php. 2013-09-20 02:51:09 +00:00
post.php Add jshintrc to qunit. 2013-10-30 14:39:10 +00:00
query.php Fix canonical redirection of cat as described in #15256 by rolling the cat query var into tax_query, instead of category__in / category__not_in. Top-level categories were only redirecting properly if they had no children. 2013-11-11 18:36:10 +00:00
registration-functions.php
registration.php
revision.php Revisions changes. 2013-07-24 06:08:14 +00:00
rewrite.php Make url_to_postid() work for custom post type URLs. Use get_post_types() and get_taxonomies() instead of directly accessing globals. Adds unit test. 2013-10-02 19:42:09 +00:00
rss-functions.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
rss.php Inline docs for hooks in MagPie. 2013-09-06 17:19:09 +00:00
script-loader.php Stop using .rtl classes, instead relying on flipping LTR CSS to RTL. 2013-11-17 16:18:11 +00:00
shortcodes.php Revert r25824:25875 from the core.svn.wordpress.org repository. 2013-10-25 02:29:52 +00:00
taxonomy.php A negative term parent value should be sanitized to 0, not 1. Fix a regression in sanitize_term_field() caused by [26010]. 2013-11-06 23:41:09 +00:00
template-loader.php Add jshintrc to qunit. 2013-10-30 14:39:10 +00:00
template.php Add jshintrc to qunit. 2013-10-30 14:39:10 +00:00
theme.php Upgrader: Make clearing the Plugin and Theme update caches optional during install and upgrade proceedures. See #22704 2013-09-06 01:33:09 +00:00
update.php Updates: Force an update check to occur when the 'Check Again' button is used in the Dashboard. Fixes #25831 2013-11-15 03:04:10 +00:00
user.php Fix docblock formatting. fixes #25893. 2013-11-11 13:32:10 +00:00
vars.php Explicitly globalize $is_nginx in vars.php. 2013-10-30 19:37:09 +00:00
version.php Background Updates: Spread them over the hour. Props Pento. Fixes #25833 for trunk 2013-11-14 04:04:10 +00:00
widgets.php Temporary hooks for the widgets feature team in dynamic_sidebar() and is_active_sidebar(). 2013-09-23 20:14:10 +00:00
wlwmanifest.xml
wp-db.php Document the 'query' filter in wp-db. 2013-09-06 17:07:09 +00:00
wp-diff.php Remove old debug comment. props nofearinc. fixes #25865. 2013-11-08 22:24:09 +00:00