Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/wp-admin/includes/deprecated.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<li class="dashboard-news-plugin"><span>' . __( 'Popular Plugin' ) . ':</span> ' . esc_html( $raw_title ) .
'&nbsp;<a href="' . $ilink . '" class="thickbox open-plugin-details-modal" aria-label="' .
/* translators: %s: Plugin name. */
esc_attr( sprintf( _x( 'Install %s', 'plugin' ), $raw_title ) ) . '">(' . __( 'Install' ) . ')</a></li>';
esc_attr( $install_label ) . '">(' . __( 'Install' ) . ')</a></li>';

$feed->__destruct();
unset( $feed );
Expand Down
7 changes: 5 additions & 2 deletions src/wp-admin/includes/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,11 @@ function update_right_now_message() {
$msg .= sprintf(
'<a href="%s" class="button" aria-describedby="wp-version">%s</a>',
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' )
)
);
}
}
Expand Down
13 changes: 9 additions & 4 deletions src/wp-includes/class-wp-object-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] ),
Expand Down
8 changes: 6 additions & 2 deletions src/wp-includes/class-wp-taxonomy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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( __( '&larr; Go to Tags' ), __( '&larr; Go to Categories' ) ),
'item_link' => array(
_x( 'Tag Link', 'navigation link block title' ),
Expand Down
26 changes: 22 additions & 4 deletions src/wp-includes/class-wp-theme-json.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down Expand Up @@ -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,
);
Expand Down
7 changes: 5 additions & 2 deletions src/wp-includes/pluggable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
Loading