Avoid printf entirely. props SergeyBiryukov, fixes #16611 for 3.1.
git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17482 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5c29dc99c0
commit
af09e49ba4
|
@ -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>';
|
||||
|
|
Loading…
Reference in New Issue