I18N: Remove `<code>` tags from translatable strings in `WP_List_Table::get_views_links()`.
To simplify the strings and exclude any parts that don't require translation, the `<code>` tags wrapping a placeholder can be moved out of the string and added to the placeholder value. Follow-up to [54215]. See #42066. Built from https://develop.svn.wordpress.org/trunk@54222 git-svn-id: http://core.svn.wordpress.org/trunk@53781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4ebc3861ea
commit
6c48acbbd3
|
@ -1533,8 +1533,8 @@ class WP_List_Table {
|
|||
__METHOD__,
|
||||
sprintf(
|
||||
/* translators: %s: The $link_data argument. */
|
||||
__( 'The <code>%s</code> argument must be an array.' ),
|
||||
'$link_data'
|
||||
__( 'The %s argument must be an array.' ),
|
||||
'<code>$link_data</code>'
|
||||
),
|
||||
'6.1.0'
|
||||
);
|
||||
|
@ -1549,9 +1549,9 @@ class WP_List_Table {
|
|||
__METHOD__,
|
||||
sprintf(
|
||||
/* translators: %1$s: The argument name. %2$s: The view name. */
|
||||
__( 'The <code>%1$s</code> argument must be a non-empty string for <code>%2$s</code>.' ),
|
||||
'url',
|
||||
esc_html( $view )
|
||||
__( 'The %1$s argument must be a non-empty string for %2$s.' ),
|
||||
'<code>url</code>',
|
||||
'<code>' . esc_html( $view ) . '</code>'
|
||||
),
|
||||
'6.1.0'
|
||||
);
|
||||
|
@ -1564,9 +1564,9 @@ class WP_List_Table {
|
|||
__METHOD__,
|
||||
sprintf(
|
||||
/* translators: %1$s: The argument name. %2$s: The view name. */
|
||||
__( 'The <code>%1$s</code> argument must be a non-empty string for <code>%2$s</code>.' ),
|
||||
'label',
|
||||
esc_html( $view )
|
||||
__( 'The %1$s argument must be a non-empty string for %2$s.' ),
|
||||
'<code>label</code>',
|
||||
'<code>' . esc_html( $view ) . '</code>'
|
||||
),
|
||||
'6.1.0'
|
||||
);
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.1-alpha-54221';
|
||||
$wp_version = '6.1-alpha-54222';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue