diff --git a/wp-admin/includes/class-wp-ms-themes-list-table.php b/wp-admin/includes/class-wp-ms-themes-list-table.php index fe4b7cb8e2..d35956c14b 100644 --- a/wp-admin/includes/class-wp-ms-themes-list-table.php +++ b/wp-admin/includes/class-wp-ms-themes-list-table.php @@ -472,7 +472,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table { ), 'themes.php' ); /* translators: %s: theme name */ - $aria_label = sprintf( __( 'Delete %s' ), $theme->display( 'Name' ) ); + $aria_label = sprintf( _x( 'Delete %s', 'theme' ), $theme->display( 'Name' ) ); $actions['delete'] = sprintf( '%s', esc_url( wp_nonce_url( $url, 'bulk-themes' ) ), diff --git a/wp-admin/includes/class-wp-plugin-install-list-table.php b/wp-admin/includes/class-wp-plugin-install-list-table.php index d917fbd8f0..5f5b56281b 100644 --- a/wp-admin/includes/class-wp-plugin-install-list-table.php +++ b/wp-admin/includes/class-wp-plugin-install-list-table.php @@ -491,7 +491,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { '%3$s', esc_url( $activate_url ), /* translators: %s: Plugin name */ - esc_attr( sprintf( __( 'Activate %s' ), $plugin['name'] ) ), + esc_attr( sprintf( _x( 'Activate %s', 'plugin' ), $plugin['name'] ) ), $button_text ); } else { diff --git a/wp-admin/includes/class-wp-plugins-list-table.php b/wp-admin/includes/class-wp-plugins-list-table.php index ddc1ad2338..160dc5cbc1 100644 --- a/wp-admin/includes/class-wp-plugins-list-table.php +++ b/wp-admin/includes/class-wp-plugins-list-table.php @@ -600,16 +600,16 @@ class WP_Plugins_List_Table extends WP_List_Table { if ( $is_active ) { if ( current_user_can( 'manage_network_plugins' ) ) { /* translators: %s: plugin name */ - $actions['deactivate'] = '' . __( 'Network Deactivate' ) . ''; + $actions['deactivate'] = '' . __( 'Network Deactivate' ) . ''; } } else { if ( current_user_can( 'manage_network_plugins' ) ) { /* translators: %s: plugin name */ - $actions['activate'] = '' . __( 'Network Activate' ) . ''; + $actions['activate'] = '' . __( 'Network Activate' ) . ''; } if ( current_user_can( 'delete_plugins' ) && ! is_plugin_active( $plugin_file ) ) { /* translators: %s: plugin name */ - $actions['delete'] = '' . __( 'Delete' ) . ''; + $actions['delete'] = '' . __( 'Delete' ) . ''; } } } else { @@ -623,14 +623,14 @@ class WP_Plugins_List_Table extends WP_List_Table { ); } elseif ( $is_active ) { /* translators: %s: plugin name */ - $actions['deactivate'] = '' . __( 'Deactivate' ) . ''; + $actions['deactivate'] = '' . __( 'Deactivate' ) . ''; } else { /* translators: %s: plugin name */ - $actions['activate'] = '' . __( 'Activate' ) . ''; + $actions['activate'] = '' . __( 'Activate' ) . ''; if ( ! is_multisite() && current_user_can( 'delete_plugins' ) ) { /* translators: %s: plugin name */ - $actions['delete'] = '' . __( 'Delete' ) . ''; + $actions['delete'] = '' . __( 'Delete' ) . ''; } } // end if $is_active diff --git a/wp-admin/theme-install.php b/wp-admin/theme-install.php index 050a7b97b5..6b38465531 100644 --- a/wp-admin/theme-install.php +++ b/wp-admin/theme-install.php @@ -250,7 +250,7 @@ if ( $tab ) { <# if ( data.installed ) { #> <# if ( data.activate_url ) { #> diff --git a/wp-admin/themes.php b/wp-admin/themes.php index 59ba3dd017..c601cd555d 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -279,7 +279,7 @@ foreach ( $themes as $theme ) : @@ -408,7 +408,7 @@ $can_install = current_user_can( 'install_themes' ); <# } else { #> @@ -466,7 +466,7 @@ $can_install = current_user_can( 'install_themes' );