Make WordPress Core

Ticket #59420: 59420.patch

File 59420.patch, 1.0 KB (added by upadalavipul, 2 years ago)
  • wp-includes/ms-settings.php

     
    9797$wpdb->set_prefix( $table_prefix, false ); // $table_prefix can be set in sunrise.php.
    9898$wpdb->set_blog_id( $current_blog->blog_id, $current_blog->site_id );
    9999$table_prefix       = $wpdb->get_blog_prefix();
    100 $_wp_switched_stack = array();
    101 $switched           = false;
    102100
    103101// Need to init cache again after blog_id is set.
    104102wp_start_object_cache();
  • wp-includes/rest-api/class-wp-rest-server.php

     
    10791079
    10801080                        foreach ( $handlers as $handler ) {
    10811081                                $callback = $handler['callback'];
    1082                                 $response = null;
    10831082
    10841083                                // Fallback to GET method if no HEAD method is registered.
    10851084                                $checked_method = $method;