Changeset 36502 for trunk/src/wp-includes/theme.php
- Timestamp:
- 02/07/2016 08:25:28 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r35976 r36502 740 740 741 741 update_option( 'theme_switched', $old_theme->get_stylesheet() ); 742 742 743 /** 743 744 * Fires after the theme is switched. 744 745 * 745 746 * @since 1.5.0 747 * @since 4.5.0 Introduced the `$old_theme` parameter. 746 748 * 747 749 * @param string $new_name Name of the new theme. 748 750 * @param WP_Theme $new_theme WP_Theme instance of the new theme. 751 * @param WP_Theme $old_theme WP_Theme instance of the old theme. 749 752 */ 750 do_action( 'switch_theme', $new_name, $new_theme );753 do_action( 'switch_theme', $new_name, $new_theme, $old_theme ); 751 754 } 752 755
Note: See TracChangeset
for help on using the changeset viewer.