Ticket #20334: 20334.patch
| File 20334.patch, 780 bytes (added by johnjamesjacoby, 14 months ago) |
|---|
-
wp-includes/theme.php
1552 1552 */ 1553 1553 function check_theme_switched() { 1554 1554 if ( $stylesheet = get_option( 'theme_switched' ) ) { 1555 $old_theme = wp_get_theme( $stylesheet ); 1555 if ( $old_theme = wp_get_theme( $stylesheet ) ) { 1556 if ( $old_theme->exists() ) { 1557 do_action( 'after_switch_theme', $old_theme->get('Name'), $old_theme ); 1558 } else { 1559 do_action( 'after_switch_theme', $stylesheet ); 1560 } 1556 1561 1557 if ( $old_theme->exists() ) 1558 do_action( 'after_switch_theme', $old_theme->get('Name'), $old_theme ); 1559 else 1560 do_action( 'after_switch_theme', $stylesheet ); 1561 1562 update_option( 'theme_switched', false ); 1562 update_option( 'theme_switched', false ); 1563 } 1563 1564 } 1564 1565 } 1565 1566