summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSergey Biryukov <sergeybiryukov@git.wordpress.org>2025-04-26 23:16:26 +0000
committerSergey Biryukov <sergeybiryukov@git.wordpress.org>2025-04-26 23:16:26 +0000
commit839c81706ebb2e29c4f70436eb62cec16602d0a7 (patch)
treee2f478a789bc68c28b4fa6f2fb079292f2f55c64
parentc38f581f03f44e7f4bea7824973e1669a77226ab (diff)
downloadwordpress-839c81706ebb2e29c4f70436eb62cec16602d0a7.tar.gz
wordpress-839c81706ebb2e29c4f70436eb62cec16602d0a7.zip
Coding Standards: Use `self::` for static member reference in `WP_Http`.
This resolves a PHPCS error: {{{ Squiz.Classes.SelfMemberReference.NotUsed - Must use "self::" for local static member reference }}} Follow-up to [20767], [37428], [38164]. Props dilipbheda. Fixes #63346. git-svn-id: https://develop.svn.wordpress.org/trunk@60191 602fd350-edb4-49c9-b593-d223f7449a82
-rw-r--r--src/wp-includes/class-wp-http.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wp-includes/class-wp-http.php b/src/wp-includes/class-wp-http.php
index d901b1abde..28df5d99e5 100644
--- a/src/wp-includes/class-wp-http.php
+++ b/src/wp-includes/class-wp-http.php
@@ -329,7 +329,7 @@ class WP_Http {
// WP allows passing in headers as a string, weirdly.
if ( ! is_array( $parsed_args['headers'] ) ) {
- $processed_headers = WP_Http::processHeaders( $parsed_args['headers'] );
+ $processed_headers = self::processHeaders( $parsed_args['headers'] );
$parsed_args['headers'] = $processed_headers['headers'];
}
@@ -368,7 +368,7 @@ class WP_Http {
// If we've got cookies, use and convert them to WpOrg\Requests\Cookie.
if ( ! empty( $parsed_args['cookies'] ) ) {
- $options['cookies'] = WP_Http::normalize_cookies( $parsed_args['cookies'] );
+ $options['cookies'] = self::normalize_cookies( $parsed_args['cookies'] );
}
// SSL certificate handling.
@@ -1076,7 +1076,7 @@ class WP_Http {
$redirect_location = array_pop( $redirect_location );
}
- $redirect_location = WP_Http::make_absolute_url( $redirect_location, $url );
+ $redirect_location = self::make_absolute_url( $redirect_location, $url );
// POST requests should not POST to a redirected location.
if ( 'POST' === $args['method'] ) {