WordPress/wp-includes
Boone Gorges 2b7d7f4833 In is_object_in_term(), return error object rather than caching it.
This change prevents an error object from being stored in the cache,
and prevents notices from being thrown when plucking term IDs to put
into the relationship cache.

See #32044, #36814.

Props rpayne7264.
Fixes #37721.
Built from https://develop.svn.wordpress.org/trunk@38277


git-svn-id: http://core.svn.wordpress.org/trunk@38218 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-18 19:15:32 +00:00
..
certificates Docs: Standardize on 'backward compatibility/compatible' nomenclature in core inline docs. 2016-05-13 18:41:31 +00:00
css System fonts: Don't quote single-word font names, per our coding standards. 2016-07-26 16:39:30 +00:00
customize Customize: Make the menu edit button look like a link. 2016-08-03 22:45:30 +00:00
fonts
ID3
images
js External Libraries: Update Minified version of jquery.masonry.js 2016-08-18 18:55:30 +00:00
pomo
random_compat
Requests Requests: Update to Requests master (fb5b517) which corrects a logic inversion in the cURL transport checks. 2016-08-18 03:48:31 +00:00
rest-api Text Changes: Unify/merge two more permission error messages. 2016-07-12 11:45:29 +00:00
SimplePie
Text
theme-compat Embeds: Don't print the HTML for a featured image if a post has no featured image. 2016-07-06 17:08:31 +00:00
widgets Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core. 2016-07-06 12:40:29 +00:00
admin-bar.php Docs: Apply inline @see tags to hooks referenced in DocBlocks in a variety of wp-includes/* files. 2016-05-23 18:59:27 +00:00
atomlib.php External Libraries: After [37402], replace two more instances of split() with explode() in wp-includes/atomlib.php. 2016-05-19 00:06:28 +00:00
author-template.php Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core. 2016-07-06 12:40:29 +00:00
bookmark-template.php Docs: Standardize filter docs in wp-includes/bookmark-template.php to use third-person singular verbs per the inline documentation standards for PHP. 2016-05-22 18:24:28 +00:00
bookmark.php Docs: Improve formatting in the DocBlock for sanitize_bookmark_field(). 2016-05-27 17:16:27 +00:00
cache.php Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core. 2016-07-06 12:40:29 +00:00
canonical.php Improve category check in redirect_canonical() when permastruct contains category slug. 2016-08-08 18:49:28 +00:00
capabilities.php Introduce an expanded meta registration API. 2016-06-30 01:02:29 +00:00
category-template.php Docs: Fix formatting, tense, verb conjugation, and other syntax for wp-includes/* elements introduced or changed in 4.6. 2016-07-20 16:57:32 +00:00
category.php Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core. 2016-07-06 12:40:29 +00:00
class-feed.php Docs: Add missing class, method, and property DocBlocks for feed classes. 2016-07-20 07:33:29 +00:00
class-http.php HTTP API: Set $use_authentication property of Requests_Proxy_HTTP to true when proxy authentication is required. 2016-07-31 18:20:29 +00:00
class-IXR.php Docs: Standardize filter docs in remaining wp-includes/* files to use third-person singular verbs per the inline documentation standards for PHP. 2016-05-22 18:50:28 +00:00
class-json.php
class-oembed.php Embeds: Fix copy/paste error in WP_oEmbed::_add_provider_early() description. 2016-08-09 14:10:30 +00:00
class-phpass.php
class-phpmailer.php
class-pop3.php
class-requests.php HTTP API: Bump version of Requests to 1.7. 2016-07-27 14:55:28 +00:00
class-simplepie.php Autoload: Introduce shim for SPL autoloading. 2016-06-06 03:24:29 +00:00
class-smtp.php
class-snoopy.php Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core. 2016-07-06 12:40:29 +00:00
class-walker-category-dropdown.php
class-walker-category.php Docs: Standardize filter docs in remaining wp-includes/* files to use third-person singular verbs per the inline documentation standards for PHP. 2016-05-22 18:50:28 +00:00
class-walker-comment.php Comments: pass $comment to comment_text() in Walker_Comment::comment() instead of using a function which can skip the cache. 2016-04-29 15:47:27 +00:00
class-walker-nav-menu.php Nav Menus: Move the Walker_Nav_Menu class to its own file. 2016-06-06 15:18:31 +00:00
class-walker-page-dropdown.php Docs: Standardize filter docs in remaining wp-includes/* files to use third-person singular verbs per the inline documentation standards for PHP. 2016-05-22 18:50:28 +00:00
class-walker-page.php Docs: Standardize filter docs in remaining wp-includes/* files to use third-person singular verbs per the inline documentation standards for PHP. 2016-05-22 18:50:28 +00:00
class-wp-admin-bar.php Toolbar: Allow 0 as a value for the tabindex property of a menu item. 2016-07-12 11:18:30 +00:00
class-wp-ajax-response.php Docs: Standardize capitalization of Ajax throughout core documentation per the core spelling guide. 2016-07-10 00:51:30 +00:00
class-wp-comment-query.php Query: add a protected field, $db, (composition, as it were) to WP_*_Query classes to hold the value for the database abstraction, instead of importing the global $wpdb into every method that uses it. Reduces the number of global imports by 32. 2016-08-18 18:21:31 +00:00
class-wp-comment.php
class-wp-customize-control.php Docs: Standardize filter docs in the Customizer classes to use third-person singular verbs per the inline documentation standards for PHP. 2016-05-22 18:10:29 +00:00
class-wp-customize-manager.php Docs: Fix typo in hook description for customize_save_validation_before. 2016-07-22 13:51:28 +00:00
class-wp-customize-nav-menus.php Customize: Link "widget areas" to widgets panel in menu locations section description. 2016-06-28 22:44:30 +00:00
class-wp-customize-panel.php Docs: Standardize filter docs in the Customizer classes to use third-person singular verbs per the inline documentation standards for PHP. 2016-05-22 18:10:29 +00:00
class-wp-customize-section.php Docs: Standardize filter docs in the Customizer classes to use third-person singular verbs per the inline documentation standards for PHP. 2016-05-22 18:10:29 +00:00
class-wp-customize-setting.php Docs: Correct and clarify various @since docs. 2016-08-04 22:54:31 +00:00
class-wp-customize-widgets.php Docs: Apply inline @see tags to hooks referenced in DocBlocks for core classes. 2016-05-23 18:54:27 +00:00
class-wp-editor.php TinyMCE, inline link: 2016-07-26 23:24:28 +00:00
class-wp-embed.php Docs: Standardize capitalization of Ajax throughout core documentation per the core spelling guide. 2016-07-10 00:51:30 +00:00
class-wp-error.php Docs: Remove/replace invalid inline @link tags in DocBlocks in wp-includes/*. 2016-05-22 17:39:28 +00:00
class-wp-http-cookie.php HTTP API: Normalize cookies before passing them to Requests. 2016-07-27 15:32:27 +00:00
class-wp-http-curl.php Docs: Standardize filter docs in core classes in wp-includes/* to use third-person singular verbs per the inline documentation standards for PHP. 2016-05-22 18:15:28 +00:00
class-wp-http-encoding.php DOCS: Replace HTTP links with HTTPS. 2016-06-10 04:50:33 +00:00
class-wp-http-ixr-client.php Docs: Standardize filter docs in core classes in wp-includes/* to use third-person singular verbs per the inline documentation standards for PHP. 2016-05-22 18:15:28 +00:00
class-wp-http-proxy.php Docs: Standardize filter docs in core classes in wp-includes/* to use third-person singular verbs per the inline documentation standards for PHP. 2016-05-22 18:15:28 +00:00
class-wp-http-requests-response.php HTTP API: Normalize cookies before passing them to Requests. 2016-07-27 15:32:27 +00:00
class-wp-http-response.php
class-wp-http-streams.php Docs: Standardize filter docs in core classes in wp-includes/* to use third-person singular verbs per the inline documentation standards for PHP. 2016-05-22 18:15:28 +00:00
class-wp-image-editor-gd.php Bootstrap: Enhance core's memory limit handling. 2016-07-08 14:37:30 +00:00
class-wp-image-editor-imagick.php Bootstrap: Enhance core's memory limit handling. 2016-07-08 14:37:30 +00:00
class-wp-image-editor.php Docs: Standardize filter docs in core classes in wp-includes/* to use third-person singular verbs per the inline documentation standards for PHP. 2016-05-22 18:15:28 +00:00
class-wp-locale.php I18N: Move the WP_Locale class to its own file. 2016-06-28 11:53:28 +00:00
class-wp-meta-query.php Query: add a protected field, $db, (composition, as it were) to WP_*_Query classes to hold the value for the database abstraction, instead of importing the global $wpdb into every method that uses it. Reduces the number of global imports by 32. 2016-08-18 18:21:31 +00:00
class-wp-metadata-lazyloader.php Docs: Apply inline @see tags to hooks referenced in DocBlocks for core classes. 2016-05-23 18:54:27 +00:00
class-wp-network-query.php Query: add a protected field, $db, (composition, as it were) to WP_*_Query classes to hold the value for the database abstraction, instead of importing the global $wpdb into every method that uses it. Reduces the number of global imports by 32. 2016-08-18 18:21:31 +00:00
class-wp-network.php Docs: Supplement a changelog entry in the DocBlock for the $id property in WP_Network. 2016-06-29 19:35:28 +00:00
class-wp-oembed-controller.php Docs: Add missing @access tags to methods in WP_oEmbed_Controller. 2016-05-25 19:22:27 +00:00
class-wp-post-type.php Docs: Correct type of WP_Post_Type::$cap from array to object. 2016-07-18 22:52:29 +00:00
class-wp-post.php
class-wp-rewrite.php Docs: Apply inline @see tags to hooks referenced in DocBlocks for core classes. 2016-05-23 18:54:27 +00:00
class-wp-role.php Docs: Standardize filter docs in core classes in wp-includes/* to use third-person singular verbs per the inline documentation standards for PHP. 2016-05-22 18:15:28 +00:00
class-wp-roles.php Docs: Standardize on 'backward compatibility/compatible' nomenclature in core inline docs. 2016-05-13 18:41:31 +00:00
class-wp-site-query.php Query: add a protected field, $db, (composition, as it were) to WP_*_Query classes to hold the value for the database abstraction, instead of importing the global $wpdb into every method that uses it. Reduces the number of global imports by 32. 2016-08-18 18:21:31 +00:00
class-wp-site.php Docs: Fix formatting, tense, verb conjugation, and other syntax for wp-includes/* elements introduced or changed in 4.6. 2016-07-20 16:57:32 +00:00
class-wp-tax-query.php Query: add a protected field, $db, (composition, as it were) to WP_*_Query classes to hold the value for the database abstraction, instead of importing the global $wpdb into every method that uses it. Reduces the number of global imports by 32. 2016-08-18 18:21:31 +00:00
class-wp-term-query.php Query: add a protected field, $db, (composition, as it were) to WP_*_Query classes to hold the value for the database abstraction, instead of importing the global $wpdb into every method that uses it. Reduces the number of global imports by 32. 2016-08-18 18:21:31 +00:00
class-wp-term.php Text Changes: Add a full stop to "Invalid taxonomy" and "Invalid term ID" strings, for consistency with similar post-related messages. 2016-07-17 16:15:34 +00:00
class-wp-theme.php Docs: Fix formatting, tense, verb conjugation, and other syntax for wp-includes/* elements introduced or changed in 4.6. 2016-07-20 16:57:32 +00:00
class-wp-user-query.php Query: add a protected field, $db, (composition, as it were) to WP_*_Query classes to hold the value for the database abstraction, instead of importing the global $wpdb into every method that uses it. Reduces the number of global imports by 32. 2016-08-18 18:21:31 +00:00
class-wp-user.php Query: add a protected field, $db, (composition, as it were) to WP_*_Query classes to hold the value for the database abstraction, instead of importing the global $wpdb into every method that uses it. Reduces the number of global imports by 32. 2016-08-18 18:21:31 +00:00
class-wp-walker.php Docs: Standardize on 'backward compatibility/compatible' nomenclature in core inline docs. 2016-05-13 18:41:31 +00:00
class-wp-widget-factory.php Docs: Fix formatting, tense, verb conjugation, and other syntax for wp-includes/* elements introduced or changed in 4.6. 2016-07-20 16:57:32 +00:00
class-wp-widget.php Widgets: Revert [37425] and [37427]. 2016-06-06 21:51:28 +00:00
class-wp-xmlrpc-server.php Query: add a protected field, $db, (composition, as it were) to WP_*_Query classes to hold the value for the database abstraction, instead of importing the global $wpdb into every method that uses it. Reduces the number of global imports by 32. 2016-08-18 18:21:31 +00:00
class-wp.php Docs: Apply inline @see tags to hooks referenced in DocBlocks in a variety of wp-includes/* files. 2016-05-23 18:59:27 +00:00
class.wp-dependencies.php
class.wp-scripts.php Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core. 2016-07-06 12:40:29 +00:00
class.wp-styles.php Docs: Standardize filter docs in remaining wp-includes/* files to use third-person singular verbs per the inline documentation standards for PHP. 2016-05-22 18:50:28 +00:00
comment-template.php Docs: Fix formatting, tense, verb conjugation, and other syntax for wp-includes/* elements introduced or changed in 4.6. 2016-07-20 16:57:32 +00:00
comment.php Docs: Fix formatting, tense, verb conjugation, and other syntax for wp-includes/* elements introduced or changed in 4.6. 2016-07-20 16:57:32 +00:00
compat.php Docs: Replace some more HTTP links with HTTPS. 2016-08-10 16:10:31 +00:00
cron.php Docs: In wp_schedule_single_event(), add a note about scheduling an event to occur within 10 minutes of another event with the same action hook. 2016-07-25 12:23:30 +00:00
date.php Docs: Standardize filter docs in remaining wp-includes/* files to use third-person singular verbs per the inline documentation standards for PHP. 2016-05-22 18:50:28 +00:00
default-constants.php Bootstrap: Enhance core's memory limit handling. 2016-07-08 14:37:30 +00:00
default-filters.php Resource Hints: Increase priority of wp_resource_hints() so hints get printed before scripts and styles. 2016-07-13 12:54:28 +00:00
default-widgets.php
deprecated.php Bootstrap: Enhance core's memory limit handling. 2016-07-08 14:37:30 +00:00
embed-template.php Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core. 2016-07-06 12:40:29 +00:00
embed.php Embeds: After [37745], check if a featured image exists before attaching an event listener. 2016-07-05 16:16:57 +00:00
feed-atom-comments.php DOCS: Replace HTTP links with HTTPS. 2016-06-10 04:50:33 +00:00
feed-atom.php
feed-rdf.php
feed-rss2-comments.php
feed-rss2.php Docs: Standardize filter docs in remaining wp-includes/* files to use third-person singular verbs per the inline documentation standards for PHP. 2016-05-22 18:50:28 +00:00
feed-rss.php
feed.php Docs: Add an initial @since version to wp-includes/feed.php. 2016-07-13 17:04:28 +00:00
formatting.php Emoji: Update the Twemoji loader to include the rainbow flag. 2016-08-04 20:51:31 +00:00
functions.php System fonts: Don't quote single-word font names, per our coding standards. 2016-07-26 16:39:30 +00:00
functions.wp-scripts.php Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core. 2016-07-06 12:40:29 +00:00
functions.wp-styles.php Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core. 2016-07-06 12:40:29 +00:00
general-template.php Script Loader: Fix protocol-relative URLs for the preconnect relation type. 2016-08-13 18:35:30 +00:00
http.php Docs: Apply inline @see tags to hooks referenced in DocBlocks in a variety of wp-includes/* files. 2016-05-23 19:01:27 +00:00
kses.php Docs: Fix formatting, tense, verb conjugation, and other syntax for wp-includes/* elements introduced or changed in 4.6. 2016-07-20 16:57:32 +00:00
l10n.php I18N: Correct the documented return types of get_translations_for_domain(). 2016-08-04 22:13:29 +00:00
link-template.php Docs: Fix formatting, tense, verb conjugation, and other syntax for wp-includes/* elements introduced or changed in 4.6. 2016-07-20 19:33:30 +00:00
load.php Docs: Replace some more HTTP links with HTTPS. 2016-08-10 16:10:31 +00:00
locale.php I18N: Move the WP_Locale class to its own file. 2016-06-28 11:53:28 +00:00
media-template.php Customize: Add a RTL version of "browser.png" for the site icon preview. 2016-07-05 11:32:29 +00:00
media.php Media: Prevent image_get_intermediate_size() from returning cropped images. 2016-07-18 02:14:29 +00:00
meta.php Docs: Fix formatting, tense, verb conjugation, and other syntax for wp-includes/* elements introduced or changed in 4.6. 2016-07-20 19:33:30 +00:00
ms-blogs.php Multisite: Remove unnecessary reference parameters. 2016-08-09 18:12:31 +00:00
ms-default-constants.php Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core. 2016-07-06 12:40:29 +00:00
ms-default-filters.php
ms-deprecated.php Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core. 2016-07-06 12:40:29 +00:00
ms-files.php
ms-functions.php Docs: Correct and clarify various @since docs. 2016-08-04 22:54:31 +00:00
ms-load.php Docs: Correct and clarify various @since docs. 2016-08-04 22:54:31 +00:00
ms-settings.php Multisite: Fire the ms_loaded action after multisite's bootstrap has finished. 2016-06-29 19:00:28 +00:00
nav-menu-template.php Nav Menus: Move the Walker_Nav_Menu class to its own file. 2016-06-06 15:18:31 +00:00
nav-menu.php Docs: Improve the summaries and return descriptions for get_registered_nav_menus() and get_nav_menu_locations(). 2016-06-20 08:26:29 +00:00
option.php Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core. 2016-07-06 12:40:29 +00:00
pluggable-deprecated.php Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core. 2016-07-06 12:40:29 +00:00
pluggable.php Mail: Improve handling of UTF-8 address headers. 2016-07-13 18:04:28 +00:00
plugin.php Bootstrap/Load: Revert Plugin Global restoration around advance-cache.php. 2016-08-13 16:00:33 +00:00
post-formats.php
post-template.php Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core. 2016-07-06 12:40:29 +00:00
post-thumbnail-template.php Post Thumbnails: Add helper functions for attachment captions. 2016-06-29 17:28:28 +00:00
post.php Post Thumbnails: Restore thumbnail support for media files. 2016-08-15 19:16:31 +00:00
query.php Docs: Fix formatting, tense, verb conjugation, and other syntax for wp-includes/* elements introduced or changed in 4.6. 2016-07-20 19:33:30 +00:00
registration-functions.php Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core. 2016-07-06 12:40:29 +00:00
registration.php Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core. 2016-07-06 12:40:29 +00:00
rest-api.php REST API: Include a refreshed nonce in a X-WP-Nonce header when responding to an authenticated request. 2016-06-29 03:02:07 +00:00
revision.php Post Thumbnails: Only update featured images when saving a post. 2016-07-20 16:24:28 +00:00
rewrite.php Docs: Apply inline @see tags to hooks referenced in DocBlocks in a variety of wp-includes/* files. 2016-05-23 19:02:28 +00:00
rss-functions.php Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core. 2016-07-06 12:40:29 +00:00
rss.php Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core. 2016-07-06 12:40:29 +00:00
script-loader.php External Libraries: Update Minified version of jquery.masonry.js 2016-08-18 18:55:30 +00:00
session.php Docs: Apply inline @see tags to hooks referenced in DocBlocks in a variety of wp-includes/* files. 2016-05-23 19:02:28 +00:00
shortcodes.php Multisite: Change WP_Network id property to an integer. 2016-06-26 14:26:29 +00:00
taxonomy.php In is_object_in_term(), return error object rather than caching it. 2016-08-18 19:15:32 +00:00
template-loader.php Docs: Standardize filter docs in remaining wp-includes/* files to use third-person singular verbs per the inline documentation standards for PHP. 2016-05-22 18:50:28 +00:00
template.php Docs: Standardize filter docs in remaining wp-includes/* files to use third-person singular verbs per the inline documentation standards for PHP. 2016-05-22 18:50:28 +00:00
theme.php Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core. 2016-07-06 12:40:29 +00:00
update.php Upgrade: Allow update checks on upgrader_process_complete to be run during Ajax requests. 2016-05-25 19:36:28 +00:00
user.php Docs: Fix formatting, tense, verb conjugation, and other syntax for wp-includes/* elements introduced or changed in 4.6. 2016-07-20 19:33:30 +00:00
vars.php Docs: Standardize filter docs in remaining wp-includes/* files to use third-person singular verbs per the inline documentation standards for PHP. 2016-05-22 18:50:28 +00:00
version.php In is_object_in_term(), return error object rather than caching it. 2016-08-18 19:15:32 +00:00
widgets.php Docs: Apply inline @see tags to hooks referenced in DocBlocks in a variety of wp-includes/* files. 2016-05-23 19:02:28 +00:00
wlwmanifest.xml
wp-db.php Database: Replace incorrect use of E_USER_NOTICE in wpdb::_real_escape() with the version number where the message was added. 2016-07-21 22:45:28 +00:00
wp-diff.php Docs: Apply inline @see tags to hooks referenced in DocBlocks in a variety of wp-includes/* files. 2016-05-23 19:02:28 +00:00