Skip to content

Commit

Permalink
Coding Standards: Use strict comparison in get_blog_id_from_url().
Browse files Browse the repository at this point in the history
Follow-up to [https://mu.trac.wordpress.org/changeset/1538 mu:1538].

Props debarghyabanerjee.
See #62283.

git-svn-id: https://develop.svn.wordpress.org/trunk@59512 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Dec 13, 2024
1 parent ab51fc3 commit 85937e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-includes/ms-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ function get_blog_id_from_url( $domain, $path = '/' ) {
$path = strtolower( $path );
$id = wp_cache_get( md5( $domain . $path ), 'blog-id-cache' );

if ( -1 == $id ) { // Blog does not exist.
if ( -1 === $id ) { // Blog does not exist.
return 0;
} elseif ( $id ) {
return (int) $id;
Expand Down

0 comments on commit 85937e7

Please sign in to comment.