Make WordPress Core


Ignore:
Timestamp:
11/04/2019 12:57:17 PM (5 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pluggable.php

    r46641 r46649  
    12521252        }
    12531253
    1254         if ( 300 > $status || 399 < $status ) {
     1254        if ( $status < 300 || 399 < $status ) {
    12551255            wp_die( __( 'HTTP redirect status code must be a redirection code, 3xx.' ) );
    12561256        }
Note: See TracChangeset for help on using the changeset viewer.