Make WordPress Core

Ticket #22401: 22401.diff

File 22401.diff, 545 bytes (added by MikeHansenMe, 10 years ago)
  • src/wp-includes/theme.php

     
    746746         *
    747747         * @param string   $new_name  Name of the new theme.
    748748         * @param WP_Theme $new_theme WP_Theme instance of the new theme.
     749         * @param WP_Theme $old_theme WP_Theme instance of the old theme.
    749750         */
    750         do_action( 'switch_theme', $new_name, $new_theme );
     751        do_action( 'switch_theme', $new_name, $new_theme, $old_theme );
    751752}
    752753
    753754/**