Ticket #59677: patch3.diff
| File patch3.diff, 827 bytes (added by , 3 years ago) |
|---|
-
wp-includes/theme.php
196 196 function get_stylesheet_directory() { 197 197 global $wp_stylesheet_path; 198 198 199 if ( function_exists( 'ms_is_switched' ) && ms_is_switched() ) { 200 $wp_stylesheet_path = null; 201 } 202 199 203 if ( null === $wp_stylesheet_path ) { 200 204 $stylesheet = get_stylesheet(); 201 205 $theme_root = get_theme_root( $stylesheet ); … … 346 350 function get_template_directory() { 347 351 global $wp_template_path; 348 352 353 if ( function_exists( 'ms_is_switched' ) && ms_is_switched() ) { 354 $wp_template_path = null; 355 } 356 349 357 if ( null === $wp_template_path ) { 350 358 $template = get_template(); 351 359 $theme_root = get_theme_root( $template );