Changeset 33815 for trunk/src/wp-includes/theme.php
- Timestamp:
- 08/30/2015 09:44:38 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/theme.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r33808 r33815 691 691 $nav_menu_locations = get_theme_mod( 'nav_menu_locations' ); 692 692 693 $old_theme = wp_get_theme(); 693 if ( func_num_args() > 1 ) { 694 $stylesheet = func_get_arg( 1 ); 695 } 696 697 $old_theme = wp_get_theme(); 694 698 $new_theme = wp_get_theme( $stylesheet ); 695 696 if ( func_num_args() > 1 ) { 697 $template = $stylesheet; 698 $stylesheet = func_get_arg( 1 ); 699 } else { 700 $template = $new_theme->get_template(); 701 } 699 $template = $new_theme->get_template(); 702 700 703 701 update_option( 'template', $template );
Note: See TracChangeset
for help on using the changeset viewer.