Skip to content

Commit 839c817

Browse files
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
1 parent c38f581 commit 839c817

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wp-includes/class-wp-http.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public function request( $url, $args = array() ) {
329329

330330
// WP allows passing in headers as a string, weirdly.
331331
if ( ! is_array( $parsed_args['headers'] ) ) {
332-
$processed_headers = WP_Http::processHeaders( $parsed_args['headers'] );
332+
$processed_headers = self::processHeaders( $parsed_args['headers'] );
333333
$parsed_args['headers'] = $processed_headers['headers'];
334334
}
335335

@@ -368,7 +368,7 @@ public function request( $url, $args = array() ) {
368368

369369
// If we've got cookies, use and convert them to WpOrg\Requests\Cookie.
370370
if ( ! empty( $parsed_args['cookies'] ) ) {
371-
$options['cookies'] = WP_Http::normalize_cookies( $parsed_args['cookies'] );
371+
$options['cookies'] = self::normalize_cookies( $parsed_args['cookies'] );
372372
}
373373

374374
// SSL certificate handling.
@@ -1076,7 +1076,7 @@ public static function handle_redirects( $url, $args, $response ) {
10761076
$redirect_location = array_pop( $redirect_location );
10771077
}
10781078

1079-
$redirect_location = WP_Http::make_absolute_url( $redirect_location, $url );
1079+
$redirect_location = self::make_absolute_url( $redirect_location, $url );
10801080

10811081
// POST requests should not POST to a redirected location.
10821082
if ( 'POST' === $args['method'] ) {

0 commit comments

Comments
 (0)