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:
parent
0a6cb83e18
commit
1a078f252a
|
@ -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' ) ),
|
||||
|
|
Loading…
Reference in New Issue