Changeset 18656 for trunk/wp-includes/theme.php
- Timestamp:
- 09/08/2011 08:59:41 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r18655 r18656 1995 1995 1996 1996 /** 1997 * Checks if a theme has been changed and runs 'after_ theme_change' hook on the next WP load1997 * 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 }
Note: See TracChangeset
for help on using the changeset viewer.