diff --git a/wp-includes/class-wp-http.php b/wp-includes/class-wp-http.php index e1d37878a1..546ba96c1c 100644 --- a/wp-includes/class-wp-http.php +++ b/wp-includes/class-wp-http.php @@ -326,11 +326,11 @@ class WP_Http { ); // Ensure redirects follow browser behavior. - $options['hooks']->register( 'requests.before_redirect', array( get_class(), 'browser_redirect_compatibility' ) ); + $options['hooks']->register( 'requests.before_redirect', array( static::class, 'browser_redirect_compatibility' ) ); // Validate redirected URLs. if ( function_exists( 'wp_kses_bad_protocol' ) && $parsed_args['reject_unsafe_urls'] ) { - $options['hooks']->register( 'requests.before_redirect', array( get_class(), 'validate_redirects' ) ); + $options['hooks']->register( 'requests.before_redirect', array( static::class, 'validate_redirects' ) ); } if ( $parsed_args['stream'] ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 9fd2f229e0..eb189d1330 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.4-alpha-56494'; +$wp_version = '6.4-alpha-56495'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.