Docs: Replace "Current theme" with "Active theme" in various DocBlocks.
This change replaces "Current theme" with "Active theme" in various DocBlocks for better consistency with user-facing strings. Follow-up to [52580]. Props Presskopp, audrasjb, costdev. Fixes #54831. See #54770. Built from https://develop.svn.wordpress.org/trunk@52610 git-svn-id: http://core.svn.wordpress.org/trunk@52198 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -653,7 +653,7 @@ function wp_prepare_themes_for_js( $themes = null ) {
|
||||
*
|
||||
* @param array $prepared_themes An associative array of theme data. Default empty array.
|
||||
* @param WP_Theme[]|null $themes An array of theme objects to prepare, if any.
|
||||
* @param string $current_theme The current theme slug.
|
||||
* @param string $current_theme The active theme slug.
|
||||
*/
|
||||
$prepared_themes = (array) apply_filters( 'pre_prepare_themes_for_js', array(), $themes, $current_theme );
|
||||
|
||||
@@ -661,7 +661,7 @@ function wp_prepare_themes_for_js( $themes = null ) {
|
||||
return $prepared_themes;
|
||||
}
|
||||
|
||||
// Make sure the current theme is listed first.
|
||||
// Make sure the active theme is listed first.
|
||||
$prepared_themes[ $current_theme ] = array();
|
||||
|
||||
if ( null === $themes ) {
|
||||
|
||||
Reference in New Issue
Block a user