From ff64d344f387badfbd26d94c14bfab272c1c11b7 Mon Sep 17 00:00:00 2001 From: nacin Date: Tue, 22 Feb 2011 04:25:11 +0000 Subject: [PATCH] Use get_comments_number() in comments_bubble() method. Removes chance of sprintf arguments error due to percent encoding in URLs and kills unnecessary translations. Escape translations into attributes. esc_url on admin_url. fixes #16611 for the 3.1 branch. git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17476 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-list-table.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php index dc20adb0aa..086a163b6e 100644 --- a/wp-admin/includes/class-wp-list-table.php +++ b/wp-admin/includes/class-wp-list-table.php @@ -420,13 +420,9 @@ class WP_List_Table { if ( $pending_comments ) echo ''; - $link = "%s"; + $link = "%s"; - comments_number( - sprintf( $link, /* translators: comment count link */ _x( '0', 'comment count' ) ), - sprintf( $link, /* translators: comment count link */ _x( '1', 'comment count' ) ), - sprintf( $link, /* translators: comment count link: % will be substituted by comment count */ _x( '%', 'comment count' ) ) - ); + printf( $link, number_format_i18n( get_comments_number() ) ); if ( $pending_comments ) echo '';