We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d9dd59 commit e6bbbfcCopy full SHA for e6bbbfc
1 file changed
src/wp-includes/ms-settings.php
@@ -99,13 +99,11 @@
99
wp_load_core_site_options( $site_id );
100
}
101
102
-if ( isset( $wpdb ) ) {
103
- if ( isset( $table_prefix ) ) {
104
- $wpdb->set_prefix( $table_prefix, false ); // $table_prefix can be set in sunrise.php.
105
- }
106
- $wpdb->set_blog_id( $current_blog->blog_id, $current_blog->site_id );
107
- $table_prefix = $wpdb->get_blog_prefix();
108
-}
+assert( isset( $wpdb ) );
+assert( isset( $table_prefix ) );
+$wpdb->set_prefix( $table_prefix, false ); // $table_prefix can be set in sunrise.php.
+$wpdb->set_blog_id( $current_blog->blog_id, $current_blog->site_id );
+$table_prefix = $wpdb->get_blog_prefix();
109
$_wp_switched_stack = array();
110
$switched = false;
111
0 commit comments