Changeset 56974 for trunk/src/wp-includes/ms-blogs.php
- Timestamp:
- 10/19/2023 07:07:13 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-blogs.php
r55990 r56974 492 492 * @global bool $switched 493 493 * @global string $table_prefix 494 * @global string $wp_template_path 495 * @global string $wp_stylesheet_path 494 496 * @global WP_Object_Cache $wp_object_cache 495 497 * … … 533 535 534 536 $wpdb->set_blog_id( $new_blog_id ); 535 $GLOBALS['table_prefix'] = $wpdb->get_blog_prefix(); 536 $GLOBALS['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; 537 541 538 542 if ( function_exists( 'wp_cache_switch_to_blog' ) ) { … … 601 605 * @global bool $switched 602 606 * @global string $table_prefix 607 * @global string $wp_template_path 608 * @global string $wp_stylesheet_path 603 609 * @global WP_Object_Cache $wp_object_cache 604 610 * … … 626 632 627 633 $wpdb->set_blog_id( $new_blog_id ); 628 $GLOBALS['blog_id'] = $new_blog_id; 629 $GLOBALS['table_prefix'] = $wpdb->get_blog_prefix(); 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; 630 638 631 639 if ( function_exists( 'wp_cache_switch_to_blog' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.