mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-02 11:44:33 +00:00
Build/Test Tools: Adjust the test for wp_redirect() status codes added in [46641] per the documentation and coding standards.
Move the test to a more appropriate place for consistency with `wp_sanitize_redirect()` and `wp_validate_redirect()` tests. See #44317. git-svn-id: https://develop.svn.wordpress.org/trunk@46649 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1251,7 +1251,7 @@ if ( ! function_exists( 'wp_redirect' ) ) :
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( 300 > $status || 399 < $status ) {
|
||||
if ( $status < 300 || 399 < $status ) {
|
||||
wp_die( __( 'HTTP redirect status code must be a redirection code, 3xx.' ) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user