diff --git src/wp-includes/ms-settings.php src/wp-includes/ms-settings.php
index 6824895880..af1a9c955d 100644
|
|
if ( ! isset( $current_site ) || ! isset( $current_blog ) ) { |
81 | 81 | } |
82 | 82 | unset( $bootstrap_result ); |
83 | 83 | |
84 | | $blog_id = $current_blog->blog_id; |
85 | 84 | $public = $current_blog->public; |
86 | 85 | |
87 | 86 | if ( empty( $current_blog->site_id ) ) { |
… |
… |
if ( ! isset( $current_site ) || ! isset( $current_blog ) ) { |
97 | 96 | $wpdb->set_prefix( $table_prefix, false ); // $table_prefix can be set in sunrise.php. |
98 | 97 | $wpdb->set_blog_id( $current_blog->blog_id, $current_blog->site_id ); |
99 | 98 | $table_prefix = $wpdb->get_blog_prefix(); |
100 | | $_wp_switched_stack = array(); |
101 | | $switched = false; |
102 | 99 | |
103 | 100 | // Need to init cache again after blog_id is set. |
104 | 101 | wp_start_object_cache(); |
diff --git src/wp-includes/rest-api/class-wp-rest-server.php src/wp-includes/rest-api/class-wp-rest-server.php
index 1690a00eb8..3830ab5670 100644
|
|
class WP_REST_Server { |
1062 | 1062 | |
1063 | 1063 | foreach ( $handlers as $handler ) { |
1064 | 1064 | $callback = $handler['callback']; |
1065 | | $response = null; |
1066 | 1065 | |
1067 | 1066 | // Fallback to GET method if no HEAD method is registered. |
1068 | 1067 | $checked_method = $method; |