Changeset 55200 for trunk/src/wp-includes/theme.php
- Timestamp:
- 02/03/2023 12:13:52 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r55014 r55200 734 734 * @global WP_Customize_Manager $wp_customize 735 735 * @global array $sidebars_widgets 736 * @global array $wp_registered_sidebars 736 737 * 737 738 * @param string $stylesheet Stylesheet name. 738 739 */ 739 740 function switch_theme( $stylesheet ) { 740 global $wp_theme_directories, $wp_customize, $sidebars_widgets ;741 global $wp_theme_directories, $wp_customize, $sidebars_widgets, $wp_registered_sidebars; 741 742 742 743 $requirements = validate_theme_requirements( $stylesheet ); … … 813 814 remove_theme_mod( 'sidebars_widgets' ); 814 815 } 816 } 817 818 // Stores classic sidebars for later use by block themes. 819 if ( $new_theme->is_block_theme() ) { 820 set_theme_mod( 'wp_classic_sidebars', $wp_registered_sidebars ); 815 821 } 816 822
Note: See TracChangeset
for help on using the changeset viewer.