WordPress/wp-includes
Sergey Biryukov 95f823d933 External Libraries: Update the Requests library to version 2.0.0.
This is a major release and contains breaking changes.

Most important changes to be aware of for this release:
* All code is now namespaced. Though there is a full backward compatibility layer available and the old class names are still supported, using them will generate a deprecation notice (which can be silenced by plugins if they'd need to support multiple WP versions). See the [https://requests.ryanmccue.info/docs/upgrading.html upgrade guide] for more details.
* A lot of classes have been marked `final`. This should generally not affect userland code as care has been taken to not apply the `final` keyword to classes which are known to be extended in userland code.
* Extensive input validation has been added to Requests. When Requests is used as documented though, this will be unnoticable.
* A new `WpOrg\Requests\Requests::has_capabilities()` method has been introduced which can be used to address #37708.
* A new `WpOrg\Requests\Response::decode_body()` method has been introduced which may be usable to simplify some of the WP native wrapper code.
* Remaining PHP 8.0 compatibility fixed (support for named parameters).
* PHP 8.1 compatibility.

Release notes: https://github.com/WordPress/Requests/releases/tag/v2.0.0

For a full list of changes in this update, see the Requests GitHub:
https://github.com/WordPress/Requests/compare/v1.8.1...v2.0.0

Follow-up to [50842], [51078].

Props jrf, schlessera, datagutten, wojsmol, dd32, dustinrue, soulseekah, costdev, szepeviktor.
Fixes #54504.
Built from https://develop.svn.wordpress.org/trunk@52244


git-svn-id: http://core.svn.wordpress.org/trunk@51836 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-25 01:12:02 +00:00
..
assets Update @wordpress packages 2021-11-23 05:40:38 +00:00
block-patterns Add Site Editor and PHP changes from Gutenberg 10.1 - 11.9 2021-11-09 02:17:17 +00:00
block-supports Update @wordpress packages 2021-11-15 12:50:17 +00:00
blocks Update @wordpress packages 2021-11-23 05:40:38 +00:00
certificates HTTP: Remove the DST Root CA X3 certificate expired on September 30, 2021. 2021-10-03 17:51:06 +00:00
css Update @wordpress packages 2021-11-23 05:40:38 +00:00
customize Docs: Remove instances of the “eg.” abbreviation in favor of “example” or “for example”. 2021-11-19 14:44:01 +00:00
fonts
ID3 External Libraries: Revert [51900] for now to investigate test failures. 2021-10-10 01:16:57 +00:00
images Coding Standards: Revert accidental image changes in [52171]. 2021-11-16 00:04:01 +00:00
IXR XML-RPC: Set HTTP status code in accordance with the spec. 2021-05-24 02:18:58 +00:00
js Docs: Miscellaneous DocBlock corrections. 2021-11-24 23:59:59 +00:00
php-compat Docs: Improve documentation for a few functions per the documentation standards. 2021-08-10 13:45:57 +00:00
PHPMailer External Libraries: Restore the phpcs:ignore statements in PHPMailer. 2021-08-18 14:08:56 +00:00
pomo Coding Standards: Add public visibility to methods in src directory. 2021-10-18 17:52:58 +00:00
random_compat
Requests External Libraries: Update the Requests library to version 2.0.0. 2021-11-25 01:12:02 +00:00
rest-api Docs: Various docblock corrections and improvements. 2021-11-23 21:37:01 +00:00
SimplePie
sitemaps Docs: Various corrections and improvements relating to types used in inline documentation. 2021-11-18 13:50:05 +00:00
sodium_compat Upgrade/Install: Update sodium_compat to v1.17.0. 2021-08-10 13:04:57 +00:00
Text
theme-compat Docs: Various corrections and improvements relating to types used in inline documentation. 2021-11-18 13:50:05 +00:00
widgets Widgets: Add filter to disable RSS widget icon. 2021-11-07 23:04:56 +00:00
admin-bar.php Editor: Fix how the Site Editor is linked to 2021-11-15 03:43:59 +00:00
atomlib.php
author-template.php Users: Escape get_author_posts_url() link in wp_list_authors(). 2021-06-21 06:06:57 +00:00
block-editor.php Update @wordpress packages 2021-11-23 05:40:38 +00:00
block-i18n.json Blocks: Add support for variations in block.json` file 2021-08-11 09:08:01 +00:00
block-patterns.php Editor: Ensure the Query block pattern category is translatable. 2021-07-02 14:35:58 +00:00
block-template-utils.php Docs: Avoid using “CPT” instead of “custom post type”. 2021-11-10 14:18:06 +00:00
block-template.php Coding Standards: Use static closures when not using $this. 2021-08-26 12:59:02 +00:00
blocks.php Add Site Editor and PHP changes from Gutenberg 10.1 - 11.9 2021-11-09 02:17:17 +00:00
bookmark-template.php General: Add "noopener" to wp_list_bookmarks() output. 2021-11-08 23:06:58 +00:00
bookmark.php General: Ensure consistent type for integer properties of a bookmark object. 2021-05-20 00:04:56 +00:00
cache-compat.php
cache.php
canonical.php Permalinks: Revert the changes stemming from pagination limits. 2021-06-08 23:32:56 +00:00
capabilities.php Users: Prevent infinite loop when using capability checks during determine_current_user on multisite. 2021-11-15 01:09:59 +00:00
category-template.php Docs: Various corrections and improvements relating to types used in inline documentation. 2021-11-18 13:50:05 +00:00
category.php
class-feed.php
class-http.php Coding Standards: Move wp-includes/class-http.php to wp-includes/class-wp-http.php. 2021-11-07 01:36:57 +00:00
class-IXR.php
class-json.php
class-oembed.php
class-phpass.php External Libraries: Update the phpass library to version 0.5. 2021-05-25 18:47:59 +00:00
class-phpmailer.php
class-pop3.php
class-requests.php External Libraries: Update the Requests library to version 2.0.0. 2021-11-25 01:12:02 +00:00
class-simplepie.php
class-smtp.php
class-snoopy.php
class-walker-category-dropdown.php Code Modernization: Fix last parameter name mismatches for parent/child classes in Walker::start_el(). 2021-09-09 12:39:59 +00:00
class-walker-category.php Taxonomy: Allow get_*_*_link() and edit_term_link() functions to accept a term ID, WP_Term, or term object. 2021-11-16 14:57:02 +00:00
class-walker-comment.php Code Modernization: Fix reserved keyword and parameter name mismatches for parent/child classes in Walker::end_el(). 2021-09-09 13:03:55 +00:00
class-walker-nav-menu.php Code Modernization: Fix reserved keyword and parameter name mismatches for parent/child classes in Walker::end_el(). 2021-09-09 13:03:55 +00:00
class-walker-page-dropdown.php Code Modernization: Fix last parameter name mismatches for parent/child classes in Walker::start_el(). 2021-09-09 12:39:59 +00:00
class-walker-page.php Code Modernization: Fix reserved keyword and parameter name mismatches for parent/child classes in Walker::end_el(). 2021-09-09 13:03:55 +00:00
class-wp-admin-bar.php Editor: Fix how the Site Editor is linked to 2021-11-15 03:43:59 +00:00
class-wp-ajax-response.php
class-wp-application-passwords.php Application Passwords: Various docblock improvements. 2021-10-30 20:26:59 +00:00
class-wp-block-editor-context.php Editor: Add missing class WP_Block_Editor_Context 2021-05-24 07:38:58 +00:00
class-wp-block-list.php Code Modernization: Silence the deprecation warnings for missing return type in WP_Block_List. 2021-08-03 11:12:55 +00:00
class-wp-block-parser.php
class-wp-block-pattern-categories-registry.php Docs: Improve the documentation for registering block patterns and block pattern categories. 2021-11-19 19:05:59 +00:00
class-wp-block-patterns-registry.php Docs: Various docblock corrections and improvements. 2021-11-23 21:37:01 +00:00
class-wp-block-styles-registry.php Docs: Various docblock corrections and improvements. 2021-11-23 21:37:01 +00:00
class-wp-block-supports.php Docs: Various docblock corrections and improvements. 2021-11-23 21:37:01 +00:00
class-wp-block-template.php Docs: Various docblock corrections and improvements. 2021-11-23 21:37:01 +00:00
class-wp-block-type-registry.php Coding Standards: Remove a one-time $message variable in some _doing_it_wrong() calls. 2021-06-15 15:22:58 +00:00
class-wp-block-type.php Build: Split packages and blocks to their webpack configs 2021-07-28 10:06:59 +00:00
class-wp-block.php Apply the pre_render_block, render_block_data, and render_block_context filters when rendering inner/nested blocks. Introdices another param to these filters: $parent_block that is the "parent" WP_Block instance for nested blocks and null for top level blocks. Adds unit tests for the filters. 2021-10-06 18:49:01 +00:00
class-wp-comment-query.php Query: Correct and standardise the meta query documentation. 2021-11-20 00:07:59 +00:00
class-wp-comment.php
class-wp-customize-control.php Coding Standards: Escape id attributes in WP_Customize_Control::render_content() and ::print_template(). 2021-10-22 16:09:59 +00:00
class-wp-customize-manager.php Docs: Various corrections and improvements relating to types used in inline documentation. 2021-11-18 13:50:05 +00:00
class-wp-customize-nav-menus.php Docs: Miscellaneous inline documentation improvements, including: 2021-10-04 20:44:02 +00:00
class-wp-customize-panel.php Docs: Replace $this in hook param docs with more appropriate names. 2021-07-30 19:35:58 +00:00
class-wp-customize-section.php Docs: Replace $this in hook param docs with more appropriate names. 2021-07-30 19:35:58 +00:00
class-wp-customize-setting.php Coding Standards: Add public visibility to methods in src directory. 2021-10-18 17:52:58 +00:00
class-wp-customize-widgets.php Widgets: Revert [51705]. 2021-09-09 21:40:57 +00:00
class-wp-date-query.php Docs: Update WP_Date_Query documentation to reflect changes in accepted column names. 2021-10-14 18:05:04 +00:00
class-wp-dependency.php
class-wp-editor.php Editor: Revert [51748] and [51649]. They intorduced a bug where wp.editor may be replaced with wp.oldEditor in certain cases. 2021-09-08 23:29:58 +00:00
class-wp-embed.php Administration: Consistently escape admin_url() links. 2021-06-17 14:37:00 +00:00
class-wp-error.php
class-wp-fatal-error-handler.php Booststrap/Load: Only reference recovery mode email when it can be sent. 2021-06-05 15:46:57 +00:00
class-wp-feed-cache-transient.php
class-wp-feed-cache.php
class-wp-hook.php Code Modernization: Silence the deprecation warnings for missing return type in WP_Hook. 2021-08-03 11:02:00 +00:00
class-wp-http-cookie.php Docs: Miscellaneous docblock corrections and improvements. 2021-09-22 21:23:00 +00:00
class-wp-http-curl.php Coding Standards: Move wp-includes/class-http.php to wp-includes/class-wp-http.php. 2021-11-07 01:36:57 +00:00
class-wp-http-encoding.php Coding Standards: Rename the $gzData argument to $gz_data in WP_Http_Encoding::compatible_gzinflate(). 2021-11-12 23:51:59 +00:00
class-wp-http-ixr-client.php Coding Standards: Use strict comparison in wp-includes/class-wp-http-ixr-client.php. 2021-10-01 15:00:58 +00:00
class-wp-http-proxy.php Docs: Remove instances of the “eg.” abbreviation in favor of “example” or “for example”. 2021-11-19 14:44:01 +00:00
class-wp-http-requests-hooks.php External Libraries: Update the Requests library to version 2.0.0. 2021-11-25 01:12:02 +00:00
class-wp-http-requests-response.php External Libraries: Update the Requests library to version 2.0.0. 2021-11-25 01:12:02 +00:00
class-wp-http-response.php
class-wp-http-streams.php Coding Standards: Move wp-includes/class-http.php to wp-includes/class-wp-http.php. 2021-11-07 01:36:57 +00:00
class-wp-http.php External Libraries: Update the Requests library to version 2.0.0. 2021-11-25 01:12:02 +00:00
class-wp-image-editor-gd.php Code Modernization: Fix parameter name mismatches for parent/child classes in WP_Image_Editor::save(). 2021-09-09 20:39:58 +00:00
class-wp-image-editor-imagick.php Code Modernization: Fix parameter name mismatches for parent/child classes in WP_Image_Editor::save(). 2021-09-09 20:39:58 +00:00
class-wp-image-editor.php Docs: Fix some docblock syntax errors and add a missing canonical reference. 2021-11-08 10:44:59 +00:00
class-wp-list-util.php General: Convert wp_list_filter() into a wrapper for wp_filter_object_list(). 2021-11-09 01:10:59 +00:00
class-wp-locale-switcher.php
class-wp-locale.php
class-wp-matchesmapregex.php
class-wp-meta-query.php Docs: Various docblock corrections and improvements. 2021-11-23 21:37:01 +00:00
class-wp-metadata-lazyloader.php
class-wp-network-query.php Docs: Replace $this in hook param docs with more appropriate names. 2021-07-30 19:35:58 +00:00
class-wp-network.php
class-wp-object-cache.php
class-wp-oembed-controller.php Docs: Document the usage of $wp_embed global in WP_oEmbed_Controller::get_proxy_item(). 2021-06-15 10:24:57 +00:00
class-wp-oembed.php Embeds: Add Wolfram Notebook as a trusted oEmbed provider. 2021-10-15 05:04:56 +00:00
class-wp-paused-extensions-storage.php
class-wp-post-type.php Docs: Remove instances of the “eg.” abbreviation in favor of “example” or “for example”. 2021-11-19 14:44:01 +00:00
class-wp-post.php
class-wp-query.php Query: Correct and standardise the meta query documentation. 2021-11-20 00:07:59 +00:00
class-wp-recovery-mode-cookie-service.php
class-wp-recovery-mode-email-service.php
class-wp-recovery-mode-key-service.php
class-wp-recovery-mode-link-service.php
class-wp-recovery-mode.php
class-wp-rewrite.php Docs: Replace $this in hook param docs with more appropriate names. 2021-07-30 19:35:58 +00:00
class-wp-role.php
class-wp-roles.php Docs: Replace $this in hook param docs with more appropriate names. 2021-07-30 19:35:58 +00:00
class-wp-session-tokens.php
class-wp-simplepie-file.php Docs: Miscellaneous DocBlock corrections. 2021-05-15 17:38:05 +00:00
class-wp-simplepie-sanitize-kses.php
class-wp-site-query.php Query: Correct and standardise the meta query documentation. 2021-11-20 00:07:59 +00:00
class-wp-site.php
class-wp-tax-query.php
class-wp-taxonomy.php Docs: Add a @since note for the rest_namespace argument of register_post_type() and register_taxonomy(). 2021-11-01 14:31:00 +00:00
class-wp-term-query.php Query: Correct and standardise the meta query documentation. 2021-11-20 00:07:59 +00:00
class-wp-term.php
class-wp-text-diff-renderer-inline.php
class-wp-text-diff-renderer-table.php
class-wp-theme-json-resolver.php Update @wordpress packages 2021-11-23 05:40:38 +00:00
class-wp-theme-json-schema.php Update theme.json classes for WordPress 5.9. 2021-11-08 19:19:58 +00:00
class-wp-theme-json.php Update @wordpress packages 2021-11-23 05:40:38 +00:00
class-wp-theme.php Docs: Various corrections and improvements relating to types used in inline documentation. 2021-11-18 13:50:05 +00:00
class-wp-user-meta-session-tokens.php
class-wp-user-query.php Query: Correct and standardise the meta query documentation. 2021-11-20 00:07:59 +00:00
class-wp-user-request.php
class-wp-user.php Docs: Miscellaneous docblock corrections and improvements. 2021-09-22 21:23:00 +00:00
class-wp-walker.php Docs: Remove instances of the “eg.” abbreviation in favor of “example” or “for example”. 2021-11-19 14:44:01 +00:00
class-wp-widget-factory.php Widgets: Fix widget preview not working if widget registered via a instance 2021-06-23 01:34:58 +00:00
class-wp-widget.php Widgets: Use isset() in WP_Widget:: display_callback() to support ArrayIterator and ArrayObject. 2021-11-16 01:43:00 +00:00
class-wp-xmlrpc-server.php Coding Standards: Move wp-includes/class-http.php to wp-includes/class-wp-http.php. 2021-11-07 01:36:57 +00:00
class-wp.php Code Modernization: Check the return type of parse_url() in WP::parse_request(). 2021-08-16 20:17:57 +00:00
class.wp-dependencies.php Docs: Miscellaneous docblock corrections and improvements. 2021-09-22 21:23:00 +00:00
class.wp-scripts.php Docs: Replace $this in hook param docs with more appropriate names. 2021-07-30 19:35:58 +00:00
class.wp-styles.php Docs: Replace $this in hook param docs with more appropriate names. 2021-07-30 19:35:58 +00:00
comment-template.php Comments: Fix PHP Notice "trying to get property of non-object" in comments_open() and pings_open(). 2021-11-19 20:24:00 +00:00
comment.php Docs: Corrections relating to types used in inline documentation for comment ID and site ID proprties. 2021-11-18 13:57:01 +00:00
compat.php General: Introduce polyfills for str_ends_with() and str_starts_with() added in PHP 8.0. 2021-11-08 14:22:57 +00:00
cron.php Docs: Various docblock corrections and improvements. 2021-11-23 21:37:01 +00:00
date.php
default-constants.php Themes: Twenty Twenty-Two is now the default theme. 2021-11-10 00:41:00 +00:00
default-filters.php Editor: Load iframed assets in Site Editor 2021-11-15 11:01:00 +00:00
default-widgets.php REST API: Add widget endpoints 2021-05-25 08:27:57 +00:00
deprecated.php General: Restore (un-deprecate) the sanitize_url() function. 2021-08-10 19:44:59 +00:00
embed-template.php
embed.php Embeds: Fix parsing of post embeds in wp_filter_oembed_result() by appending wp-embed script instead of prepending it in get_post_embed_html(). 2021-11-13 07:28:00 +00:00
error-protection.php
feed-atom-comments.php
feed-atom.php
feed-rdf.php
feed-rss2-comments.php
feed-rss2.php
feed-rss.php
feed.php Docs: Miscellaneous DocBlock corrections. 2021-05-15 17:38:05 +00:00
formatting.php Formatting: Add additional support for single and nestable tags in force_balance_tags(). 2021-11-16 19:42:01 +00:00
functions.php Docs: Remove instances of the “eg.” abbreviation in favor of “example” or “for example”. 2021-11-19 14:44:01 +00:00
functions.wp-scripts.php Docs: Provide a more accurate description for a few script and style functions. 2021-09-02 08:30:58 +00:00
functions.wp-styles.php Script Loader: Document path as an accepted value for $key in wp_style_add_data(). 2021-11-19 15:14:00 +00:00
general-template.php Template: Fix "undefined index: 00" when archive month query is empty in wp_title(). 2021-11-11 16:29:00 +00:00
global-styles-and-settings.php Update @wordpress packages 2021-11-23 05:40:38 +00:00
http.php External Libraries: Update the Requests library to version 2.0.0. 2021-11-25 01:12:02 +00:00
https-detection.php Docs: Miscellaneous DocBlock corrections. 2021-05-15 17:38:05 +00:00
https-migration.php
kses.php Docs: Add a @since note and description to wp_kses_attr() for new attribute-related KSES options: 2021-11-23 18:39:00 +00:00
l10n.php Coding Standards: Minor alignment fix after [52058]. 2021-11-09 18:51:02 +00:00
link-template.php Docs: Remove instances of the “eg.” abbreviation in favor of “example” or “for example”. 2021-11-19 14:44:01 +00:00
load.php Bootstrap/Load: Check $_SERVER['SCRIPT_NAME'] exists before passing to strpos() in wp_fix_server_vars(). 2021-11-12 01:10:01 +00:00
locale.php
media-template.php Media: Move dismiss upload errors button after errors. 2021-11-17 15:56:03 +00:00
media.php Media: Add support for v1 and v2 gallery block in get_post_galleries(). 2021-11-16 21:25:03 +00:00
meta.php Options, Meta APIs: Correct docs for $_meta_value parameter in xxx_{$meta_type}_meta hooks. 2021-11-11 18:32:00 +00:00
ms-blogs.php
ms-default-constants.php Code Modernization: Check the return type of parse_url() in ms_cookie_constants(). 2021-08-17 22:08:57 +00:00
ms-default-filters.php Posts, Post Types: Multisite: Decrement post_count option value when a post is deleted. 2021-11-18 15:11:59 +00:00
ms-deprecated.php
ms-files.php Multisite: Log error/warnings/notices from ms-files.php. 2021-07-06 20:21:57 +00:00
ms-functions.php Docs: Corrections relating to types used in inline documentation for comment ID and site ID proprties. 2021-11-18 13:57:01 +00:00
ms-load.php
ms-network.php
ms-settings.php
ms-site.php Docs: Corrections relating to types used in inline documentation for comment ID and site ID proprties. 2021-11-18 13:57:01 +00:00
nav-menu-template.php
nav-menu.php REST API: Remove experimental block menu item types. 2021-11-16 17:09:00 +00:00
navigation-areas.php Update @wordpress packages 2021-11-15 12:50:17 +00:00
option.php Docs: Various docblock improvements and corrections. 2021-11-08 10:48:59 +00:00
pluggable-deprecated.php
pluggable.php Docs: Add missing null allowed type for the $id parameter of wp_set_current_user(). 2021-11-18 16:04:00 +00:00
plugin.php Docs: Further synchronize documentation for some Plugin API functions. 2021-05-04 15:01:58 +00:00
post-formats.php
post-template.php Docs: Various corrections and improvements relating to types used in inline documentation. 2021-11-18 13:50:05 +00:00
post-thumbnail-template.php Docs: Various corrections and improvements relating to types used in inline documentation. 2021-11-18 13:50:05 +00:00
post.php Update @wordpress packages 2021-11-23 05:40:38 +00:00
query.php Coding Standards: Remove a one-time $message variable in some _doing_it_wrong() calls. 2021-06-15 15:22:58 +00:00
registration-functions.php
registration.php
rest-api.php External Libraries: Update the Requests library to version 2.0.0. 2021-11-25 01:12:02 +00:00
revision.php Revisions: Introduce wp_get_post_revisions_url() to get URL for editing revisions. 2021-11-10 01:26:59 +00:00
rewrite.php
robots-template.php
rss-functions.php
rss.php
script-loader.php Media: improve error message for failed image uploads. 2021-11-16 20:01:00 +00:00
session.php
shortcodes.php Coding Standards: Remove a one-time $message variable in some _doing_it_wrong() calls. 2021-06-15 15:22:58 +00:00
sitemaps.php Docs: Miscellaneous DocBlock corrections. 2021-05-15 17:38:05 +00:00
spl-autoload-compat.php
taxonomy.php Docs: Various corrections and improvements relating to types used in inline documentation. 2021-11-18 13:50:05 +00:00
template-canvas.php Add Site Editor and PHP changes from Gutenberg 10.1 - 11.9 2021-11-09 02:17:17 +00:00
template-loader.php
template.php Block Editor: Introduce block templates for classic themes. 2021-05-25 14:20:57 +00:00
theme-i18n.json Update theme.json classes for WordPress 5.9. 2021-11-08 19:19:58 +00:00
theme-templates.php Themes: Move the skip link to outside the canvas in block themes 2021-11-25 01:07:01 +00:00
theme.json Update theme.json classes for WordPress 5.9. 2021-11-08 19:19:58 +00:00
theme.php Docs: Avoid using “CPT” instead of “custom post type”. 2021-11-10 14:18:06 +00:00
update.php Upgrade/Install: Correct the weekly cron event for clearing the temp-backup directory: 2021-11-16 22:19:59 +00:00
user.php Coding Standards: Revert unrelated change to wp_send_user_request(). 2021-11-09 16:22:58 +00:00
vars.php
version.php External Libraries: Update the Requests library to version 2.0.0. 2021-11-25 01:12:02 +00:00
widgets.php Docs: Various corrections and improvements relating to types used in inline documentation. 2021-11-18 13:50:05 +00:00
wlwmanifest.xml
wp-db.php WPDB: Call wp_load_translations_early() in wpdb::query() and wpdb::process_fields(). 2021-11-19 19:00:00 +00:00
wp-diff.php