WordPress.org

Make WordPress Core

Changeset 21378


Ignore:
Timestamp:
07/31/2012 09:11:17 PM (6 years ago)
Author:
ryan
Message:

Use Yoda conditions. Props evansolomon. see #21270

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-blogs.php

    r21357 r21378  
    330330        $id = get_current_blog_id();
    331331
    332     if ( $id == get_current_blog_id() )
     332    if ( get_current_blog_id() == $id )
    333333        return get_option( $option, $default );
    334334
     
    365365        $id = get_current_blog_id();
    366366
    367     if ( $id == get_current_blog_id() )
     367    if ( get_current_blog_id() == $id )
    368368        return add_option( $option, $value );
    369369
     
    390390        $id = get_current_blog_id();
    391391
    392     if ( $id == get_current_blog_id() )
     392    if ( get_current_blog_id() == $id )
    393393        return delete_option( $option );
    394394
     
    416416        _deprecated_argument( __FUNCTION__, '3.1' );
    417417
    418     if ( $id == get_current_blog_id() )
     418    if ( get_current_blog_id() == $id )
    419419        return update_option( $option, $value );
    420420
Note: See TracChangeset for help on using the changeset viewer.