Skip to content

Refresh: Upgrade to Requests 2.0.0 - #3732

Closed
costdev wants to merge 22 commits into
WordPress:trunkfrom
costdev:upgrade-to-requests-2.0
Closed

Refresh: Upgrade to Requests 2.0.0#3732
costdev wants to merge 22 commits into
WordPress:trunkfrom
costdev:upgrade-to-requests-2.0

Conversation

@costdev

@costdevcostdev commented Dec 7, 2022

Copy link
Copy Markdown
Contributor

External libraries: upgrade to Requests 2.0.0

Upgrade references to the Requests library in the WP code

This PR:

  • Moves all new files to src/wp-includes/Requests/src/.
  • Updates the require statement for Autoload.php in src/wp-includes/class-wp-http.php.
  • Adds Requests 1.x files/directories to $_old_files.
  • Introduces _preload_old_requests_files() to preload Requests 1.x slated for deletion.
  • Adds a call to _preload_old_requests_files() at the beginning of update_core().

Trac ticket: https://core.trac.wordpress.org/ticket/54504

Refresh of #1624.

How to Test?

Testing instructions are found here https://gist.github.com/hellofromtonya/bb0aa2d4b2311c8b40fa5ae8ada4dc19.

@costdev
costdev marked this pull request as ready for review December 7, 2022 17:58
Comment threadsrc/wp-admin/includes/update-core.php Outdated
Comment threadsrc/wp-includes/class-requests.php Outdated
Comment threadsrc/wp-includes/class-requests.php Outdated
Comment threadsrc/wp-includes/class-requests.php Outdated
@costdev
costdevforce-pushed the upgrade-to-requests-2.0 branch from b5d5443 to f4468f0CompareDecember 10, 2022 02:55
@costdev
costdevforce-pushed the upgrade-to-requests-2.0 branch from f4468f0 to c6a4e10CompareDecember 10, 2022 14:57
Comment threadsrc/wp-includes/class-requests.php

@hellofromtonyahellofromtonya left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My testing also confirms it works as expected. It resolves the blocking issues of filesystem case-insensitivity and fatal errors from the intermixing of Requests 1.x with 2.x.

This PR is ready for commit ✅

@hellofromtonya

Copy link
Copy Markdown
Contributor

Commit via changeset https://core.trac.wordpress.org/changeset/54997.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@costdev@hellofromtonya@swissspidy@mukeshpanchal27@jrfnl