diff --git wp-includes/default-filters.php wp-includes/default-filters.php
index 1c69f38..64e193f 100644
|
|
|
add_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 ); |
| 219 | 219 | add_action( 'template_redirect', 'wp_shortlink_header', 11, 0 ); |
| 220 | 220 | add_action( 'wp_print_footer_scripts', '_wp_footer_scripts' ); |
| 221 | 221 | add_action( 'init', 'check_theme_switched', 99 ); |
| 222 | | add_action( 'after_theme_change', '_wp_sidebars_changed' ); |
| | 222 | add_action( 'after_switch_theme', '_wp_sidebars_changed' ); |
| 223 | 223 | |
| 224 | 224 | if ( isset( $_GET['replytocom'] ) ) |
| 225 | 225 | add_filter( 'pre_option_blog_public', '__return_zero' ); |
diff --git wp-includes/theme.php wp-includes/theme.php
index d30a679..1b9a36c 100644
|
|
|
function _delete_attachment_theme_mod( $id ) { |
| 1994 | 1994 | add_action( 'delete_attachment', '_delete_attachment_theme_mod' ); |
| 1995 | 1995 | |
| 1996 | 1996 | /** |
| 1997 | | * Checks if a theme has been changed and runs 'after_theme_change' hook on the next WP load |
| | 1997 | * Checks if a theme has been changed and runs 'after_switch_theme' hook on the next WP load |
| 1998 | 1998 | * |
| 1999 | 1999 | * @since 3.3 |
| 2000 | | */ |
| | 2000 | */ |
| 2001 | 2001 | function check_theme_switched() { |
| 2002 | 2002 | if ( false !== ( $old_theme = get_option( 'theme_switched' ) ) && !empty( $old_theme ) ) { |
| 2003 | | do_action( 'after_theme_change', $old_theme ); |
| | 2003 | do_action( 'after_switch_theme', $old_theme ); |
| 2004 | 2004 | update_option( 'theme_switched', false ); |
| 2005 | 2005 | } |
| 2006 | 2006 | } |