General: Fix various instances of incorrect filter docs and incorrect filter and action parameters.

Props keesiemeijer for identifying the issues

See #38462


git-svn-id: https://develop.svn.wordpress.org/trunk@41219 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2017-08-03 15:42:45 +00:00
parent 70027dd170
commit 3aadc71579
9 changed files with 13 additions and 12 deletions

View File

@@ -2749,7 +2749,7 @@ function check_theme_switched() {
do_action( 'after_switch_theme', $old_theme->get( 'Name' ), $old_theme );
} else {
/** This action is documented in wp-includes/theme.php */
do_action( 'after_switch_theme', $stylesheet );
do_action( 'after_switch_theme', $stylesheet, $old_theme );
}
flush_rewrite_rules();