Avoid printf entirely. props SergeyBiryukov, fixes #16611 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@17481 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-02-22 10:12:38 +00:00
parent 77ccb220a4
commit 22230cb94e

View File

@ -420,9 +420,7 @@ class WP_List_Table {
if ( $pending_comments )
echo '<strong>';
$link = "<a href='" . esc_url( add_query_arg( 'p', $post_id, admin_url( 'edit-comments.php' ) ) ) . "' title='" . esc_attr( $pending_phrase ) . "' class='post-com-count'><span class='comment-count'>%s</span></a>";
printf( $link, number_format_i18n( get_comments_number() ) );
echo "<a href='" . esc_url( add_query_arg( 'p', $post_id, admin_url( 'edit-comments.php' ) ) ) . "' title='" . esc_attr( $pending_phrase ) . "' class='post-com-count'><span class='comment-count'>" . number_format_i18n( get_comments_number() ) . "</span></a>";
if ( $pending_comments )
echo '</strong>';