Make WordPress Core


Ignore:
Timestamp:
09/21/2020 11:11:10 AM (4 years ago)
Author:
SergeyBiryukov
Message:

General: Give the $is variable in is_wp_error() a more descriptive name.

Follow-up to [49022].

See #40568.

File:
1 edited

Legend:

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

    r49022 r49023  
    14571457 */
    14581458function is_wp_error( $thing ) {
    1459     $is = ( $thing instanceof WP_Error );
    1460 
    1461     if ( $is ) {
     1459    $is_wp_error = ( $thing instanceof WP_Error );
     1460
     1461    if ( $is_wp_error ) {
    14621462        /**
    14631463         * Fires when `is_wp_error()` is called and it's an instance of `WP_Error`.
     
    14701470    }
    14711471
    1472     return $is;
     1472    return $is_wp_error;
    14731473}
    14741474
Note: See TracChangeset for help on using the changeset viewer.