mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
Coding Standards: Use strict comparison in wp-includes/class-wp-network.php
.
Follow-up to [41380], [41861], [45910]. Props aristath, poena, afercia, SergeyBiryukov. See #57839. Built from https://develop.svn.wordpress.org/trunk@56219 git-svn-id: http://core.svn.wordpress.org/trunk@55731 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fd1dfbc113
commit
05f19b1ed7
@ -228,6 +228,7 @@ class WP_Network {
|
||||
* @param WP_Network $network The network object for which the main site was detected.
|
||||
*/
|
||||
$main_site_id = (int) apply_filters( 'pre_get_main_site_id', null, $this );
|
||||
|
||||
if ( 0 < $main_site_id ) {
|
||||
return $main_site_id;
|
||||
}
|
||||
@ -236,8 +237,10 @@ class WP_Network {
|
||||
return (int) $this->blog_id;
|
||||
}
|
||||
|
||||
if ( ( defined( 'DOMAIN_CURRENT_SITE' ) && defined( 'PATH_CURRENT_SITE' ) && DOMAIN_CURRENT_SITE === $this->domain && PATH_CURRENT_SITE === $this->path )
|
||||
|| ( defined( 'SITE_ID_CURRENT_SITE' ) && SITE_ID_CURRENT_SITE == $this->id ) ) {
|
||||
if ( ( defined( 'DOMAIN_CURRENT_SITE' ) && defined( 'PATH_CURRENT_SITE' )
|
||||
&& DOMAIN_CURRENT_SITE === $this->domain && PATH_CURRENT_SITE === $this->path )
|
||||
|| ( defined( 'SITE_ID_CURRENT_SITE' ) && (int) SITE_ID_CURRENT_SITE === $this->id )
|
||||
) {
|
||||
if ( defined( 'BLOG_ID_CURRENT_SITE' ) ) {
|
||||
$this->blog_id = (string) BLOG_ID_CURRENT_SITE;
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.3-beta4-56218';
|
||||
$wp_version = '6.3-beta4-56219';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user