Changeset 56219
- Timestamp:
- 07/12/2023 09:44:30 AM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-network.php
r55990 r56219 229 229 */ 230 230 $main_site_id = (int) apply_filters( 'pre_get_main_site_id', null, $this ); 231 231 232 if ( 0 < $main_site_id ) { 232 233 return $main_site_id; … … 237 238 } 238 239 239 if ( ( defined( 'DOMAIN_CURRENT_SITE' ) && defined( 'PATH_CURRENT_SITE' ) && DOMAIN_CURRENT_SITE === $this->domain && PATH_CURRENT_SITE === $this->path ) 240 || ( defined( 'SITE_ID_CURRENT_SITE' ) && SITE_ID_CURRENT_SITE == $this->id ) ) { 240 if ( ( defined( 'DOMAIN_CURRENT_SITE' ) && defined( 'PATH_CURRENT_SITE' ) 241 && DOMAIN_CURRENT_SITE === $this->domain && PATH_CURRENT_SITE === $this->path ) 242 || ( defined( 'SITE_ID_CURRENT_SITE' ) && (int) SITE_ID_CURRENT_SITE === $this->id ) 243 ) { 241 244 if ( defined( 'BLOG_ID_CURRENT_SITE' ) ) { 242 245 $this->blog_id = (string) BLOG_ID_CURRENT_SITE;
Note: See TracChangeset
for help on using the changeset viewer.