228*229* @since 4.9.0230*231* @param int|null$main_site_idIf a positive integer is returned, it is interpreted as the main site ID.232* @param WP_Network$network The network objectfor which the main site was detected.233*/234$main_site_id=(int)apply_filters('pre_get_main_site_id',null,$this);235236if(0<$main_site_id){237return$main_site_id;238}239240if(0<(int)$this->blog_id){
History
Introduced in 4.9.0. Unchanged from 6.7.7 through 7.1.0.