Make WordPress Core


Ignore:
Timestamp:
09/08/2011 08:59:41 PM (14 years ago)
Author:
azaozz
Message:

Rename the newly added action 'after_theme_change' to 'after_switch_theme' so it matches the 'switch_theme' action, props scribu, see #17979

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r18655 r18656  
    19951995
    19961996/**
    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
    19981998 *
    19991999 * @since 3.3
    2000  */   
     2000 */
    20012001function check_theme_switched() {
    20022002    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 );
    20042004        update_option( 'theme_switched', false );
    20052005    }
Note: See TracChangeset for help on using the changeset viewer.