diff --git a/src/wp-admin/includes/deprecated.php b/src/wp-admin/includes/deprecated.php
index b3aaad1ad9a2f..e39f332e7f0d5 100644
--- a/src/wp-admin/includes/deprecated.php
+++ b/src/wp-admin/includes/deprecated.php
@@ -1386,10 +1386,15 @@ function wp_dashboard_plugins_output( $rss, $args = array() ) {
$raw_title = $item->get_title();
$ilink = wp_nonce_url('plugin-install.php?tab=plugin-information&plugin=' . $slug, 'install-plugin_' . $slug) . '&TB_iframe=true&width=600&height=800';
+ $install_label = sprintf(
+ /* translators: %s: Plugin name. */
+ _x( 'Install %s', 'plugin' ),
+ $raw_title
+ );
+
echo '
' . __( 'Popular Plugin' ) . ': ' . esc_html( $raw_title ) .
' (' . __( 'Install' ) . ')';
+ esc_attr( $install_label ) . '">(' . __( 'Install' ) . ')';
$feed->__destruct();
unset( $feed );
diff --git a/src/wp-admin/includes/update.php b/src/wp-admin/includes/update.php
index e7b02a2a62c8a..60d84a54dac8f 100644
--- a/src/wp-admin/includes/update.php
+++ b/src/wp-admin/includes/update.php
@@ -385,8 +385,11 @@ function update_right_now_message() {
$msg .= sprintf(
'%s',
network_admin_url( 'update-core.php' ),
- /* translators: %s: WordPress version number, or 'Latest' string. */
- sprintf( __( 'Update to %s' ), $cur->current ? $cur->current : __( 'Latest' ) )
+ sprintf(
+ /* translators: %s: WordPress version number, or 'Latest' string. */
+ __( 'Update to %s' ),
+ $cur->current ? $cur->current : __( 'Latest' )
+ )
);
}
}
diff --git a/src/wp-includes/class-wp-object-cache.php b/src/wp-includes/class-wp-object-cache.php
index 443af49e3112d..0ac9e10dcde3c 100644
--- a/src/wp-includes/class-wp-object-cache.php
+++ b/src/wp-includes/class-wp-object-cache.php
@@ -154,10 +154,15 @@ protected function is_valid_key( $key ) {
wp_load_translations_early();
}
- $message = is_string( $key )
- ? __( 'Cache key must not be an empty string.' )
- /* translators: %s: The type of the given cache key. */
- : sprintf( __( 'Cache key must be an integer or a non-empty string, %s given.' ), $type );
+ if ( is_string( $key ) ) {
+ $message = __( 'Cache key must not be an empty string.' );
+ } else {
+ $message = sprintf(
+ /* translators: %s: The type of the given cache key. */
+ __( 'Cache key must be an integer or a non-empty string, %s given.' ),
+ $type
+ );
+ }
_doing_it_wrong(
sprintf( '%s::%s', __CLASS__, debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS, 2 )[1]['function'] ),
diff --git a/src/wp-includes/class-wp-taxonomy.php b/src/wp-includes/class-wp-taxonomy.php
index f44ce34a11def..d563a2c4386da 100644
--- a/src/wp-includes/class-wp-taxonomy.php
+++ b/src/wp-includes/class-wp-taxonomy.php
@@ -633,8 +633,12 @@ public static function get_default_labels() {
'filter_by_item' => array( null, __( 'Filter by category' ) ),
'items_list_navigation' => array( __( 'Tags list navigation' ), __( 'Categories list navigation' ) ),
'items_list' => array( __( 'Tags list' ), __( 'Categories list' ) ),
- /* translators: Tab heading when selecting from the most used terms. */
- 'most_used' => array( _x( 'Most Used', 'tags' ), _x( 'Most Used', 'categories' ) ),
+ 'most_used' => array(
+ /* translators: Tab heading when selecting from the most used terms. */
+ _x( 'Most Used', 'tags' ),
+ /* translators: Tab heading when selecting from the most used terms. */
+ _x( 'Most Used', 'categories' ),
+ ),
'back_to_items' => array( __( '← Go to Tags' ), __( '← Go to Categories' ) ),
'item_link' => array(
_x( 'Tag Link', 'navigation link block title' ),
diff --git a/src/wp-includes/class-wp-theme-json.php b/src/wp-includes/class-wp-theme-json.php
index 15d08fba457a9..577a47505f2c5 100644
--- a/src/wp-includes/class-wp-theme-json.php
+++ b/src/wp-includes/class-wp-theme-json.php
@@ -5860,9 +5860,18 @@ private static function compute_spacing_sizes( $spacing_scale ) {
break;
}
+ if ( $below_midpoint_count === $steps_mid_point - 1 ) {
+ $name = __( 'Small' );
+ } else {
+ $name = sprintf(
+ /* translators: %s: Digit to indicate multiple of sizing, eg. 2X-Small. */
+ __( '%sX-Small' ),
+ (string) $x_small_count
+ );
+ }
+
$below_sizes[] = array(
- /* translators: %s: Digit to indicate multiple of sizing, eg. 2X-Small. */
- 'name' => $below_midpoint_count === $steps_mid_point - 1 ? __( 'Small' ) : sprintf( __( '%sX-Small' ), (string) $x_small_count ),
+ 'name' => $name,
'slug' => (string) $slug,
'size' => round( $current_step, 2 ) . $unit,
);
@@ -5897,9 +5906,18 @@ private static function compute_spacing_sizes( $spacing_scale ) {
? $current_step + $spacing_scale['increment']
: ( $spacing_scale['increment'] >= 1 ? $current_step * $spacing_scale['increment'] : $current_step / $spacing_scale['increment'] );
+ if ( 0 === $above_midpoint_count ) {
+ $name = __( 'Large' );
+ } else {
+ $name = sprintf(
+ /* translators: %s: Digit to indicate multiple of sizing, eg. 2X-Large. */
+ __( '%sX-Large' ),
+ (string) $x_large_count
+ );
+ }
+
$above_sizes[] = array(
- /* translators: %s: Digit to indicate multiple of sizing, eg. 2X-Large. */
- 'name' => 0 === $above_midpoint_count ? __( 'Large' ) : sprintf( __( '%sX-Large' ), (string) $x_large_count ),
+ 'name' => $name,
'slug' => (string) $slug,
'size' => round( $current_step, 2 ) . $unit,
);
diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php
index 0aaeabbb3b9c0..f1890a188b0cf 100644
--- a/src/wp-includes/pluggable.php
+++ b/src/wp-includes/pluggable.php
@@ -1917,8 +1917,11 @@ function wp_notify_postauthor( $comment_id, $deprecated = null ) {
$notify_message .= sprintf( __( 'Author: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
/* translators: %s: Note author email. */
$notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n";
- /* translators: %s: Note text. */
- $notify_message .= sprintf( __( 'Note: %s' ), "\r\n" . ( empty( $comment_content ) ? __( 'resolved/reopened' ) : $comment_content ) ) . "\r\n\r\n";
+ $notify_message .= sprintf(
+ /* translators: %s: Note text. */
+ __( 'Note: %s' ),
+ "\r\n" . ( empty( $comment_content ) ? __( 'resolved/reopened' ) : $comment_content )
+ ) . "\r\n\r\n";
$notify_message .= __( 'You can see all notes on this post here:' ) . "\r\n";
/* translators: Note notification email subject. 1: Site title, 2: Post title. */
$subject = sprintf( __( '[%1$s] Note: "%2$s"' ), $blogname, $post->post_title );