correct post id in comments_bubble()

git-svn-id: http://svn.automattic.com/wordpress/trunk@15505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-08-18 16:41:58 +00:00
parent eec59d35bb
commit 27b022bd38
1 changed files with 3 additions and 3 deletions

View File

@ -268,8 +268,8 @@ class WP_List_Table {
<?php
}
/** Display a comment count bubble
*
/**
* Display a comment count bubble
*
* @since 3.1.0
* @access protected
@ -283,7 +283,7 @@ class WP_List_Table {
if ( $pending_comments )
echo '<strong>';
$link = "<a href='edit-comments.php?p=$post->ID' title='$pending_phrase' class='post-com-count'><span class='comment-count'>%s</span></a>";
$link = "<a href='" . add_query_arg( 'p', $post_id, admin_url('edit-comments.php') ) . "' title='$pending_phrase' class='post-com-count'><span class='comment-count'>%s</span></a>";
comments_number(
sprintf( $link, /* translators: comment count link */ _x( '0', 'comment count' ) ),