Prevents Ajax requests from following redirects when previewing a theme by issuing a 200 response instead of a 30x.
Instead, the JS will sniff out the location header.
$statusintrequired
public function wp_redirect_status( $status ) {
_deprecated_function( __FUNCTION__, '4.7.0' );
if ( $this->is_preview() && ! is_admin() ) {
return 200;
}
return $status;
}
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_manager/wp_redirect_status