Skip to content

Incorrect version of Requests dependency loaded #404

@kovshenin

Description

@kovshenin

I've been working through various PHP 8.1 related issues, and one thing I noticed is that due to a dependency is this module, WordPress core loads an incorrect version of the Requests library:

[327] => /usr/src/app/wordpress/wp-includes/class-wp-http.php
[328] => /usr/src/app/vendor/rmccue/requests/library/Requests.php

This is because class-wp-http.php calls class_exists on Requests, causing the autoloader to kick in and load the one from vendor, instead of the version shipped with WordPress core. The dependency comes from:

  • altis/dev-tools -> lucatume/wp-browser
  • lucatume/wp-browser -> wp-cli/wp-cli
  • wp-cli/wp-cli -> rmccue/requests

Acceptance criteria:

  • WordPress should load the Requests library bundled with Core

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugExisting functionality isn't behaving as expected

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions