Changeset 42343 for trunk/src/wp-includes/ms-settings.php
- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/ms-settings.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-settings.php
r41875 r42343 53 53 // This block will process a request if the current network or current site objects 54 54 // have not been populated in the global scope through something like `sunrise.php`. 55 if ( ! isset( $current_site ) || !isset( $current_blog ) ) {55 if ( ! isset( $current_site ) || ! isset( $current_blog ) ) { 56 56 57 57 $domain = strtolower( stripslashes( $_SERVER['HTTP_HOST'] ) ); 58 58 if ( substr( $domain, -3 ) == ':80' ) { 59 $domain = substr( $domain, 0, -3 );59 $domain = substr( $domain, 0, -3 ); 60 60 $_SERVER['HTTP_HOST'] = substr( $_SERVER['HTTP_HOST'], 0, -3 ); 61 61 } elseif ( substr( $domain, -4 ) == ':443' ) { 62 $domain = substr( $domain, 0, -4 );62 $domain = substr( $domain, 0, -4 ); 63 63 $_SERVER['HTTP_HOST'] = substr( $_SERVER['HTTP_HOST'], 0, -4 ); 64 64 } … … 97 97 $wpdb->set_prefix( $table_prefix, false ); // $table_prefix can be set in sunrise.php 98 98 $wpdb->set_blog_id( $current_blog->blog_id, $current_blog->site_id ); 99 $table_prefix = $wpdb->get_blog_prefix();99 $table_prefix = $wpdb->get_blog_prefix(); 100 100 $_wp_switched_stack = array(); 101 $switched = false;101 $switched = false; 102 102 103 103 // need to init cache again after blog_id is set
Note: See TracChangeset
for help on using the changeset viewer.