Make WordPress Core


Ignore:
Timestamp:
02/09/2020 04:52:28 PM (6 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-wp-http-ixr-client.php

    r47122 r47219  
    7777        $args['headers'] = apply_filters( 'wp_http_ixr_client_headers', $args['headers'] );
    7878
    79         if ( $this->timeout !== false ) {
     79        if ( false !== $this->timeout ) {
    8080            $args['timeout'] = $this->timeout;
    8181        }
     
    113113
    114114        // Is the message a fault?
    115         if ( $this->message->messageType == 'fault' ) {
     115        if ( 'fault' === $this->message->messageType ) {
    116116            $this->error = new IXR_Error( $this->message->faultCode, $this->message->faultString );
    117117            return false;
Note: See TracChangeset for help on using the changeset viewer.