From 6c48acbbd39ff26175c9c5d1d43b28b09a73da63 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 19 Sep 2022 22:15:10 +0000 Subject: [PATCH] I18N: Remove `` 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 `` 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 --- wp-admin/includes/class-wp-list-table.php | 16 ++++++++-------- wp-includes/version.php | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php index fd24141a2c..87973139dd 100644 --- a/wp-admin/includes/class-wp-list-table.php +++ b/wp-admin/includes/class-wp-list-table.php @@ -1533,8 +1533,8 @@ class WP_List_Table { __METHOD__, sprintf( /* translators: %s: The $link_data argument. */ - __( 'The %s argument must be an array.' ), - '$link_data' + __( 'The %s argument must be an array.' ), + '$link_data' ), '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 %1$s argument must be a non-empty string for %2$s.' ), - 'url', - esc_html( $view ) + __( 'The %1$s argument must be a non-empty string for %2$s.' ), + 'url', + '' . esc_html( $view ) . '' ), '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 %1$s argument must be a non-empty string for %2$s.' ), - 'label', - esc_html( $view ) + __( 'The %1$s argument must be a non-empty string for %2$s.' ), + 'label', + '' . esc_html( $view ) . '' ), '6.1.0' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 156570d72b..3fbb7f11ef 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.