correct post id in comments_bubble()

git-svn-id: https://develop.svn.wordpress.org/trunk@15505 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu 2010-08-18 16:41:58 +00:00
parent 0a6cb83e18
commit 1a078f252a
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' ) ),