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. Built from https://develop.svn.wordpress.org/trunk@46649 git-svn-id: http://core.svn.wordpress.org/trunk@46449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8dc75b569c
commit
b5bf852dfe
|
@ -1251,7 +1251,7 @@ if ( ! function_exists( 'wp_redirect' ) ) :
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( 300 > $status || 399 < $status ) {
|
if ( $status < 300 || 399 < $status ) {
|
||||||
wp_die( __( 'HTTP redirect status code must be a redirection code, 3xx.' ) );
|
wp_die( __( 'HTTP redirect status code must be a redirection code, 3xx.' ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.4-alpha-46648';
|
$wp_version = '5.4-alpha-46649';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue