Changeset 57129 for trunk/src/wp-includes/ms-blogs.php
- Timestamp:
- 11/20/2023 10:27:17 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-blogs.php
r56974 r57129 492 492 * @global bool $switched 493 493 * @global string $table_prefix 494 * @global string $wp_template_path495 * @global string $wp_stylesheet_path496 494 * @global WP_Object_Cache $wp_object_cache 497 495 * … … 535 533 536 534 $wpdb->set_blog_id( $new_blog_id ); 537 $GLOBALS['table_prefix'] = $wpdb->get_blog_prefix(); 538 $GLOBALS['blog_id'] = $new_blog_id; 539 $GLOBALS['wp_template_path'] = null; 540 $GLOBALS['wp_stylesheet_path'] = null; 535 $GLOBALS['table_prefix'] = $wpdb->get_blog_prefix(); 536 $GLOBALS['blog_id'] = $new_blog_id; 541 537 542 538 if ( function_exists( 'wp_cache_switch_to_blog' ) ) { … … 605 601 * @global bool $switched 606 602 * @global string $table_prefix 607 * @global string $wp_template_path608 * @global string $wp_stylesheet_path609 603 * @global WP_Object_Cache $wp_object_cache 610 604 * … … 632 626 633 627 $wpdb->set_blog_id( $new_blog_id ); 634 $GLOBALS['blog_id'] = $new_blog_id; 635 $GLOBALS['table_prefix'] = $wpdb->get_blog_prefix(); 636 $GLOBALS['wp_template_path'] = null; 637 $GLOBALS['wp_stylesheet_path'] = null; 628 $GLOBALS['blog_id'] = $new_blog_id; 629 $GLOBALS['table_prefix'] = $wpdb->get_blog_prefix(); 638 630 639 631 if ( function_exists( 'wp_cache_switch_to_blog' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.