WordPress.org

Make WordPress Core


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

Coding Standards: Use Yoda conditions where appropriate.

See #49222.

File:
1 edited

Legend:

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

    r47060 r47219  
    614614        $site  = reset( $sites );
    615615
    616         if ( $site && (int) $site->blog_id !== get_current_blog_id() ) {
     616        if ( $site && get_current_blog_id() !== (int) $site->blog_id ) {
    617617            switch_to_blog( $site->blog_id );
    618618            $switched_blog = true;
Note: See TracChangeset for help on using the changeset viewer.