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

git-svn-id: https://develop.svn.wordpress.org/trunk@18656 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2011-09-08 20:59:41 +00:00
parent 7b2c49d219
commit 647031a087
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -1994,13 +1994,13 @@ function _delete_attachment_theme_mod( $id ) {
add_action( 'delete_attachment', '_delete_attachment_theme_mod' );
/**
* Checks if a theme has been changed and runs 'after_theme_change' hook on the next WP load
* Checks if a theme has been changed and runs 'after_switch_theme' hook on the next WP load
*
* @since 3.3
*/
*/
function check_theme_switched() {
if ( false !== ( $old_theme = get_option( 'theme_switched' ) ) && !empty( $old_theme ) ) {
do_action( 'after_theme_change', $old_theme );
do_action( 'after_switch_theme', $old_theme );
update_option( 'theme_switched', false );
}
}