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:
@@ -1455,7 +1455,7 @@ endif;
|
||||
|
||||
/**
|
||||
* Given an attachment ID for a header image, unsets it as a user-uploaded
|
||||
* header image for the current theme.
|
||||
* header image for the active theme.
|
||||
*
|
||||
* Triggered when the user clicks the overlay "X" button next to each image
|
||||
* choice in the Customizer's Header tool.
|
||||
|
||||
@@ -223,7 +223,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
|
||||
|
||||
echo '<h2 class="update-from-upload-heading">' . esc_html__( 'This theme is already installed.' ) . '</h2>';
|
||||
|
||||
// Check errors for current theme.
|
||||
// Check errors for active theme.
|
||||
if ( is_wp_error( $current_theme_data->errors() ) ) {
|
||||
$this->feedback( 'current_theme_has_errors', $current_theme_data->errors()->get_error_message() );
|
||||
}
|
||||
@@ -283,7 +283,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
|
||||
* @since 5.5.0
|
||||
*
|
||||
* @param string $table The output table with Name, Version, Author, RequiresWP, and RequiresPHP info.
|
||||
* @param WP_Theme $current_theme_data Current theme data.
|
||||
* @param WP_Theme $current_theme_data Active theme data.
|
||||
* @param array $new_theme_data Array with uploaded theme data.
|
||||
*/
|
||||
echo apply_filters( 'install_theme_overwrite_comparison', $table, $current_theme_data, $new_theme_data );
|
||||
|
||||
@@ -609,7 +609,7 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||
}
|
||||
|
||||
/**
|
||||
* Turn on maintenance mode before attempting to upgrade the current theme.
|
||||
* Turn on maintenance mode before attempting to upgrade the active theme.
|
||||
*
|
||||
* Hooked to the {@see 'upgrader_pre_install'} filter by Theme_Upgrader::upgrade() and
|
||||
* Theme_Upgrader::bulk_upgrade().
|
||||
@@ -627,7 +627,7 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||
|
||||
$theme = isset( $theme['theme'] ) ? $theme['theme'] : '';
|
||||
|
||||
// Only run if current theme
|
||||
// Only run if active theme
|
||||
if ( get_stylesheet() !== $theme ) {
|
||||
return $return;
|
||||
}
|
||||
@@ -641,7 +641,7 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||
}
|
||||
|
||||
/**
|
||||
* Turn off maintenance mode after upgrading the current theme.
|
||||
* Turn off maintenance mode after upgrading the active theme.
|
||||
*
|
||||
* Hooked to the {@see 'upgrader_post_install'} filter by Theme_Upgrader::upgrade()
|
||||
* and Theme_Upgrader::bulk_upgrade().
|
||||
@@ -659,7 +659,7 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||
|
||||
$theme = isset( $theme['theme'] ) ? $theme['theme'] : '';
|
||||
|
||||
// Only run if current theme.
|
||||
// Only run if active theme.
|
||||
if ( get_stylesheet() !== $theme ) {
|
||||
return $return;
|
||||
}
|
||||
|
||||
@@ -1987,7 +1987,7 @@ function wp_dashboard_empty() {}
|
||||
* Displays a welcome panel to introduce users to WordPress.
|
||||
*
|
||||
* @since 3.3.0
|
||||
* @since 5.9.0 Send users to the Site Editor if the current theme is block-based.
|
||||
* @since 5.9.0 Send users to the Site Editor if the active theme is block-based.
|
||||
*/
|
||||
function wp_welcome_panel() {
|
||||
list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
|
||||
|
||||
@@ -287,7 +287,7 @@ function wp_get_theme_file_editable_extensions( $theme ) {
|
||||
* @since 4.4.0
|
||||
*
|
||||
* @param string[] $default_types An array of editable theme file extensions.
|
||||
* @param WP_Theme $theme The current theme object.
|
||||
* @param WP_Theme $theme The active theme object.
|
||||
*/
|
||||
$file_types = apply_filters( 'wp_theme_editor_filetypes', $default_types, $theme );
|
||||
|
||||
|
||||
@@ -485,7 +485,7 @@ function post_format_meta_box( $post, $box ) {
|
||||
if ( ! $post_format ) {
|
||||
$post_format = '0';
|
||||
}
|
||||
// Add in the current one if it isn't there yet, in case the current theme doesn't support it.
|
||||
// Add in the current one if it isn't there yet, in case the active theme doesn't support it.
|
||||
if ( $post_format && ! in_array( $post_format, $post_formats[0], true ) ) {
|
||||
$post_formats[0][] = $post_format;
|
||||
}
|
||||
|
||||
@@ -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