Ticket #44317: fix(wp_redirect)__Adding_validation_of_status_code___wp_redirect()_will_now_exit_if_status.patch
File fix(wp_redirect)__Adding_validation_of_status_code___wp_redirect()_will_now_exit_if_status.patch, 585 bytes (added by , 5 years ago) |
---|
-
src/wp-includes/pluggable.php
IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8
1250 1250 return false; 1251 1251 } 1252 1252 1253 if ( 300 >= $status && 400 < $status ) { 1254 wp_die( __( 'HTTP redirect status code must be a redirection code, 3xx.' ) ); 1255 } 1256 1253 1257 $location = wp_sanitize_redirect( $location ); 1254 1258 1255 1259 if ( ! $is_IIS && PHP_SAPI != 'cgi-fcgi' ) {