Make WordPress Core


Ignore:
Timestamp:
02/09/2020 04:52:28 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use Yoda conditions where appropriate.

See #49222.

File:
1 edited

Legend:

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

    r47198 r47219  
    486486    public static function browser_redirect_compatibility( $location, $headers, $data, &$options, $original ) {
    487487        // Browser compatibility.
    488         if ( $original->status_code === 302 ) {
     488        if ( 302 === $original->status_code ) {
    489489            $options['type'] = Requests::GET;
    490490        }
Note: See TracChangeset for help on using the changeset viewer.