Coding Standards: Use Yoda conditions where appropriate.
See #49222. Built from https://develop.svn.wordpress.org/trunk@47219 git-svn-id: http://core.svn.wordpress.org/trunk@47019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -614,7 +614,7 @@ function get_oembed_response_data_for_url( $url, $args ) {
|
||||
$sites = get_sites( $qv );
|
||||
$site = reset( $sites );
|
||||
|
||||
if ( $site && (int) $site->blog_id !== get_current_blog_id() ) {
|
||||
if ( $site && get_current_blog_id() !== (int) $site->blog_id ) {
|
||||
switch_to_blog( $site->blog_id );
|
||||
$switched_blog = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user