From d2378d60b78ec3b20c48843b69c0c7d8bd7c2bf2 Mon Sep 17 00:00:00 2001
From: Rajin Sharwar <rajinsharwar@gmail.com>
Date: Sat, 22 Jul 2023 16:57:20 +0600
Subject: [PATCH] Update class-wp-http.php for PHP warning
---
src/wp-includes/class-wp-http.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/wp-includes/class-wp-http.php b/src/wp-includes/class-wp-http.php
index e1d37878a1..968b48252f 100644
a
|
b
|
class WP_Http { |
326 | 326 | ); |
327 | 327 | |
328 | 328 | // Ensure redirects follow browser behavior. |
329 | | $options['hooks']->register( 'requests.before_redirect', array( get_class(), 'browser_redirect_compatibility' ) ); |
330 | | |
| 329 | $options['hooks']->register( 'requests.before_redirect', array( static::class, 'browser_redirect_compatibility' ) ); |
| 330 | |
331 | 331 | // Validate redirected URLs. |
332 | 332 | if ( function_exists( 'wp_kses_bad_protocol' ) && $parsed_args['reject_unsafe_urls'] ) { |
333 | | $options['hooks']->register( 'requests.before_redirect', array( get_class(), 'validate_redirects' ) ); |
| 333 | $options['hooks']->register( 'requests.before_redirect', array( static::class, 'validate_redirects' ) ); |
334 | 334 | } |
335 | 335 | |
336 | 336 | if ( $parsed_args['stream'] ) { |