mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
Introduce and use translate_nooped_plural(). Fixes #13996
* _n_noop() and _nx_noop() now return associative arrays for greater clarity * translate_nooped_plural() takes one such associative array and translates it * it works on both the result from _n_noop() and from _nx_noop() * this breaks backwards compatibility, but I doubt any plugin uses it (I will do a global grep to confirm) * translate_nooped_plural() is applied where applicable git-svn-id: https://develop.svn.wordpress.org/trunk@16073 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -149,7 +149,7 @@ class WP_Comments_Table extends WP_List_Table {
|
||||
$link = add_query_arg( 's', esc_attr( stripslashes( $_REQUEST['s'] ) ), $link );
|
||||
*/
|
||||
$status_links[$status] = "<li class='$status'><a href='$link'$class>" . sprintf(
|
||||
_n( $label[0], $label[1], $num_comments->$status ),
|
||||
translate_nooped_plural( $label, $num_comments->$status ),
|
||||
number_format_i18n( $num_comments->$status )
|
||||
) . '</a>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user