diff options
author | Jb Audras <audrasjb@git.wordpress.org> | 2022-01-15 08:42:56 +0000 |
---|---|---|
committer | Jb Audras <audrasjb@git.wordpress.org> | 2022-01-15 08:42:56 +0000 |
commit | ff33d84f8615b8c7c01de8a396b6085f493f080f (patch) | |
tree | 5c6fc33d52019189b7d36432eb44c61b23585d88 | |
parent | bdfa786d88984f96b262bbe66f166b10808de2e3 (diff) | |
download | wordpress-ff33d84f8615b8c7c01de8a396b6085f493f080f.tar.gz wordpress-ff33d84f8615b8c7c01de8a396b6085f493f080f.zip |
Administration: Replace "Current theme" with "Active theme" in user facing strings.
This change replaces "Current theme" with "Active theme" in user-facing strings. It brings better consistency across the Administration.
Props Presskopp, audrasjb, costdev.
Fixes #54770.
git-svn-id: https://develop.svn.wordpress.org/trunk@52580 602fd350-edb4-49c9-b593-d223f7449a82
10 files changed, 17 insertions, 17 deletions
diff --git a/src/wp-admin/includes/class-custom-image-header.php b/src/wp-admin/includes/class-custom-image-header.php index eff3501b2e..f0bf1a21a6 100644 --- a/src/wp-admin/includes/class-custom-image-header.php +++ b/src/wp-admin/includes/class-custom-image-header.php @@ -817,7 +817,7 @@ endif; if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) { wp_die( '<h1>' . __( 'Something went wrong.' ) . '</h1>' . - '<p>' . __( 'The current theme does not support uploading a custom header image.' ) . '</p>', + '<p>' . __( 'The active theme does not support uploading a custom header image.' ) . '</p>', 403 ); } @@ -1003,7 +1003,7 @@ endif; if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) { wp_die( '<h1>' . __( 'Something went wrong.' ) . '</h1>' . - '<p>' . __( 'The current theme does not support uploading a custom header image.' ) . '</p>', + '<p>' . __( 'The active theme does not support uploading a custom header image.' ) . '</p>', 403 ); } @@ -1014,7 +1014,7 @@ endif; ) { wp_die( '<h1>' . __( 'Something went wrong.' ) . '</h1>' . - '<p>' . __( 'The current theme does not support a flexible sized header image.' ) . '</p>', + '<p>' . __( 'The active theme does not support a flexible sized header image.' ) . '</p>', 403 ); } diff --git a/src/wp-admin/includes/class-theme-installer-skin.php b/src/wp-admin/includes/class-theme-installer-skin.php index 46d4c22d8c..fbcc7ccd83 100644 --- a/src/wp-admin/includes/class-theme-installer-skin.php +++ b/src/wp-admin/includes/class-theme-installer-skin.php @@ -245,7 +245,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin { ); $table = '<table class="update-from-upload-comparison"><tbody>'; - $table .= '<tr><th></th><th>' . esc_html_x( 'Current', 'theme' ) . '</th><th>' . esc_html_x( 'Uploaded', 'theme' ) . '</th></tr>'; + $table .= '<tr><th></th><th>' . esc_html_x( 'Active', 'theme' ) . '</th><th>' . esc_html_x( 'Uploaded', 'theme' ) . '</th></tr>'; $is_same_theme = true; // Let's consider only these rows. @@ -327,7 +327,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin { if ( $this->is_downgrading ) { $warning = sprintf( /* translators: %s: Documentation URL. */ - __( 'You are uploading an older version of a current theme. You can continue to install the older version, but be sure to <a href="%s">back up your database and files</a> first.' ), + __( 'You are uploading an older version of the active theme. You can continue to install the older version, but be sure to <a href="%s">back up your database and files</a> first.' ), __( 'https://wordpress.org/support/article/wordpress-backups/' ) ); } else { @@ -345,7 +345,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin { $install_actions['overwrite_theme'] = sprintf( '<a class="button button-primary update-from-upload-overwrite" href="%s" target="_parent">%s</a>', wp_nonce_url( add_query_arg( 'overwrite', $overwrite, $this->url ), 'theme-upload' ), - _x( 'Replace current with uploaded', 'theme' ) + _x( 'Replace active with uploaded', 'theme' ) ); } else { echo $blocked_message; diff --git a/src/wp-admin/includes/class-theme-upgrader.php b/src/wp-admin/includes/class-theme-upgrader.php index c550314c5d..0a80209386 100644 --- a/src/wp-admin/includes/class-theme-upgrader.php +++ b/src/wp-admin/includes/class-theme-upgrader.php @@ -92,7 +92,7 @@ class Theme_Upgrader extends WP_Upgrader { /* translators: %s: Theme name. */ $this->strings['parent_theme_not_found'] = sprintf( __( '<strong>The parent theme could not be found.</strong> You will need to install the parent theme, %s, before you can use this child theme.' ), '<strong>%s</strong>' ); /* translators: %s: Theme error. */ - $this->strings['current_theme_has_errors'] = __( 'The current theme has the following error: "%s".' ); + $this->strings['current_theme_has_errors'] = __( 'The active theme has the following error: "%s".' ); if ( ! empty( $this->skin->overwrite ) ) { if ( 'update-theme' === $this->skin->overwrite ) { diff --git a/src/wp-admin/includes/class-walker-nav-menu-edit.php b/src/wp-admin/includes/class-walker-nav-menu-edit.php index a3c1124edb..ac8e36b85f 100644 --- a/src/wp-admin/includes/class-walker-nav-menu-edit.php +++ b/src/wp-admin/includes/class-walker-nav-menu-edit.php @@ -232,7 +232,7 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu { <label for="edit-menu-item-description-<?php echo $item_id; ?>"> <?php _e( 'Description' ); ?><br /> <textarea id="edit-menu-item-description-<?php echo $item_id; ?>" class="widefat edit-menu-item-description" rows="3" cols="20" name="menu-item-description[<?php echo $item_id; ?>]"><?php echo esc_html( $menu_item->description ); // textarea_escaped ?></textarea> - <span class="description"><?php _e( 'The description will be displayed in the menu if the current theme supports it.' ); ?></span> + <span class="description"><?php _e( 'The description will be displayed in the menu if the active theme supports it.' ); ?></span> </label> </p> diff --git a/src/wp-admin/includes/class-wp-site-health.php b/src/wp-admin/includes/class-wp-site-health.php index a79de8e8cf..cd72670ff7 100644 --- a/src/wp-admin/includes/class-wp-site-health.php +++ b/src/wp-admin/includes/class-wp-site-health.php @@ -634,7 +634,7 @@ class WP_Site_Health { ), sprintf( /* translators: 1: The currently active theme. 2: The active theme's parent theme. */ - __( 'To enhance your site’s security, you should consider removing any themes you’re not using. You should keep your current theme, %1$s, and %2$s, its parent theme.' ), + __( 'To enhance your site’s security, you should consider removing any themes you’re not using. You should keep your active theme, %1$s, and %2$s, its parent theme.' ), $active_theme->name, $active_theme->parent()->name ) @@ -653,7 +653,7 @@ class WP_Site_Health { ), sprintf( /* translators: 1: The default theme for WordPress. 2: The currently active theme. 3: The active theme's parent theme. */ - __( 'To enhance your site’s security, you should consider removing any themes you’re not using. You should keep %1$s, the default WordPress theme, %2$s, your current theme, and %3$s, its parent theme.' ), + __( 'To enhance your site’s security, you should consider removing any themes you’re not using. You should keep %1$s, the default WordPress theme, %2$s, your active theme, and %3$s, its parent theme.' ), $default_theme ? $default_theme->name : WP_DEFAULT_THEME, $active_theme->name, $active_theme->parent()->name diff --git a/src/wp-admin/includes/class-wp-themes-list-table.php b/src/wp-admin/includes/class-wp-themes-list-table.php index 095267c06d..233dc8c6d5 100644 --- a/src/wp-admin/includes/class-wp-themes-list-table.php +++ b/src/wp-admin/includes/class-wp-themes-list-table.php @@ -129,7 +129,7 @@ class WP_Themes_List_Table extends WP_List_Table { // Fallthrough. printf( /* translators: %s: Network title. */ - __( 'Only the current theme is available to you. Contact the %s administrator for information about accessing additional themes.' ), + __( 'Only the active theme is available to you. Contact the %s administrator for information about accessing additional themes.' ), get_site_option( 'site_name' ) ); } diff --git a/src/wp-admin/includes/theme.php b/src/wp-admin/includes/theme.php index b39d778aea..d7d7d18eaf 100644 --- a/src/wp-admin/includes/theme.php +++ b/src/wp-admin/includes/theme.php @@ -831,7 +831,7 @@ function customize_themes_print_templates() { <div class="theme-info"> <# if ( data.active ) { #> - <span class="current-label"><?php _e( 'Current Theme' ); ?></span> + <span class="current-label"><?php _e( 'Active Theme' ); ?></span> <# } #> <h2 class="theme-name">{{{ data.name }}}<span class="theme-version"> <?php diff --git a/src/wp-admin/themes.php b/src/wp-admin/themes.php index 8b38bd032b..09fb400912 100644 --- a/src/wp-admin/themes.php +++ b/src/wp-admin/themes.php @@ -133,8 +133,8 @@ if ( current_user_can( 'switch_themes' ) ) { '<p>' . __( 'From this screen you can:' ) . '</p>' . '<ul><li>' . __( 'Hover or tap to see Activate and Live Preview buttons' ) . '</li>' . '<li>' . __( 'Click on the theme to see the theme name, version, author, description, tags, and the Delete link' ) . '</li>' . - '<li>' . __( 'Click Customize for the current theme or Live Preview for any other theme to see a live preview' ) . '</li></ul>' . - '<p>' . __( 'The current theme is displayed highlighted as the first theme.' ) . '</p>' . + '<li>' . __( 'Click Customize for the active theme or Live Preview for any other theme to see a live preview' ) . '</li></ul>' . + '<p>' . __( 'The active theme is displayed highlighted as the first theme.' ) . '</p>' . '<p>' . __( 'The search for installed themes will search for terms in their name, description, author, or tag.' ) . ' <span id="live-search-desc">' . __( 'The search results will be updated as you type.' ) . '</span></p>'; get_current_screen()->add_help_tab( @@ -955,7 +955,7 @@ function wp_theme_auto_update_setting_template() { <div class="theme-info"> <# if ( data.active ) { #> - <span class="current-label"><?php _e( 'Current Theme' ); ?></span> + <span class="current-label"><?php _e( 'Active Theme' ); ?></span> <# } #> <h2 class="theme-name">{{{ data.name }}}<span class="theme-version"> <?php diff --git a/src/wp-includes/class-wp-recovery-mode-email-service.php b/src/wp-includes/class-wp-recovery-mode-email-service.php index 9c8dd6964a..574744b138 100644 --- a/src/wp-includes/class-wp-recovery-mode-email-service.php +++ b/src/wp-includes/class-wp-recovery-mode-email-service.php @@ -338,7 +338,7 @@ When seeking help with this issue, you may be asked for some of the following in ), 'theme' => sprintf( /* translators: 1: Current active theme name. 2: Current active theme version. */ - __( 'Current theme: %1$s (version %2$s)' ), + __( 'Active theme: %1$s (version %2$s)' ), $theme->get( 'Name' ), $theme->get( 'Version' ) ), diff --git a/src/wp-includes/customize/class-wp-customize-nav-menu-item-control.php b/src/wp-includes/customize/class-wp-customize-nav-menu-item-control.php index b842cab15d..d6cae27b95 100644 --- a/src/wp-includes/customize/class-wp-customize-nav-menu-item-control.php +++ b/src/wp-includes/customize/class-wp-customize-nav-menu-item-control.php @@ -130,7 +130,7 @@ class WP_Customize_Nav_Menu_Item_Control extends WP_Customize_Control { <label for="edit-menu-item-description-{{ data.menu_item_id }}"> <?php _e( 'Description' ); ?><br /> <textarea id="edit-menu-item-description-{{ data.menu_item_id }}" class="widefat edit-menu-item-description" rows="3" cols="20" name="menu-item-description">{{ data.description }}</textarea> - <span class="description"><?php _e( 'The description will be displayed in the menu if the current theme supports it.' ); ?></span> + <span class="description"><?php _e( 'The description will be displayed in the menu if the active theme supports it.' ); ?></span> </label> </p> |