mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Docs: All sorts of improvements and corrections to function and hook docs.
See #57840 git-svn-id: https://develop.svn.wordpress.org/trunk@55694 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -825,6 +825,8 @@ function switch_theme( $stylesheet ) {
|
||||
/**
|
||||
* Fires after the theme is switched.
|
||||
*
|
||||
* See {@see 'after_switch_theme'}.
|
||||
*
|
||||
* @since 1.5.0
|
||||
* @since 4.5.0 Introduced the `$old_theme` parameter.
|
||||
*
|
||||
@@ -3386,13 +3388,14 @@ function check_theme_switched() {
|
||||
|
||||
if ( $old_theme->exists() ) {
|
||||
/**
|
||||
* Fires on the first WP load after a theme switch if the old theme still exists.
|
||||
* Fires on the next WP load after the theme has been switched.
|
||||
*
|
||||
* This action fires multiple times and the parameters differs
|
||||
* according to the context, if the old theme exists or not.
|
||||
* If the old theme is missing, the parameter will be the slug
|
||||
* The parameters differ according to whether the old theme exists or not.
|
||||
* If the old theme is missing, the old name will instead be the slug
|
||||
* of the old theme.
|
||||
*
|
||||
* See {@see 'switch_theme'}.
|
||||
*
|
||||
* @since 3.3.0
|
||||
*
|
||||
* @param string $old_name Old theme name.
|
||||
|
||||
Reference in New Issue
Block a user