Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Requests class names to the correct case. #2001

Closed
wants to merge 4 commits into from

Conversation

costdev
Copy link
Contributor

@costdev costdev commented Dec 3, 2021

This PR changes:

  • WpOrg\Requests\Proxy\HTTP to WpOrg\Requests\Proxy\Http.
  • WpOrg\Requests\IPv6 to WpOrg\Requests\Ipv6.
  • WpOrg\Requests\IRI to WpOrg\Requests\Iri.

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

@costdev costdev changed the title Change WpOrg\Requests\Proxy\HTTP to the correct case. Change Requests class names to the correct case. Dec 3, 2021
Copy link
Contributor

@hellofromtonya hellofromtonya left a comment

Choose a reason for hiding this comment

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

@costdev Requests files are a dependency where Core is a consumer of it, but not a maintainer. Needed changes for any of the Requests code should be reported to Requests repo via opening an issue https://github.com/WordPress/Requests/issues.

As these changes are docblocks and not sourcecode, I'd suggest removing those particular changes from this PR.

The change that fixes the fatal error reported in the Trac ticket is in src/wp-includes/Requests/Proxy/Http.php. This fix looks good to me 👍 and is a Core maintained file.

These files are not maintained in Core, but rather in the Requests repo.
@@ -90,7 +90,6 @@ public static function uncompress($ip) {
* Example: FF01:0:0:0:0:0:0:101 -> FF01::101
* 0:0:0:0:0:0:0:1 -> ::1
*
* @see \WpOrg\Requests\IPv6::uncompress()
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* @see \WpOrg\Requests\IPv6::uncompress()
* @see \WpOrg\Requests\IPv6::uncompress()

Whoops didn't mean to remove the original comment. Doh.

Copy link
Contributor

@hellofromtonya hellofromtonya left a comment

Choose a reason for hiding this comment

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

The fix in the src/wp-includes/class-wp-http.php` is approved.

I'll revert the changes to the Requests docblocks before committing.

@hellofromtonya
Copy link
Contributor

Committed fix only (without docblock changes) in changeset https://core.trac.wordpress.org/changeset/52315.

jrfnl added a commit to WordPress/Requests that referenced this pull request Dec 7, 2021
Discovered by and props to costdev via WordPress/wordpress-develop#2001

Co-authored-by: costdev <[email protected]>
@costdev costdev deleted the 54562 branch September 19, 2022 21:08
Sign up for free to 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.

2 participants