Changeset 56495
- Timestamp:
- 08/30/2023 10:07:13 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-http.php
r55988 r56495 327 327 328 328 // Ensure redirects follow browser behavior. 329 $options['hooks']->register( 'requests.before_redirect', array( get_class(), 'browser_redirect_compatibility' ) );329 $options['hooks']->register( 'requests.before_redirect', array( static::class, 'browser_redirect_compatibility' ) ); 330 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
Note: See TracChangeset
for help on using the changeset viewer.