diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php
index af21a2e6fb..bed8d9479f 100644
--- a/wp-admin/edit-comments.php
+++ b/wp-admin/edit-comments.php
@@ -225,7 +225,7 @@ foreach ( $stati as $status => $label ) {
$num_comments->$status = 10;
$link = add_query_arg( 'comment_status', $status, $link );
if ( $post_id )
- $link = add_query_arg( 'post_ID', absint( $post_id ), $link );
+ $link = add_query_arg( 'p', absint( $post_id ), $link );
/*
// I toyed with this, but decided against it. Leaving it in here in case anyone thinks it is a good idea. ~ Mark
if ( !empty( $_REQUEST['s'] ) )
@@ -252,7 +252,7 @@ unset($status_links);
-
+
@@ -280,7 +280,7 @@ unset($status_links);
-
+
diff --git a/wp-admin/includes/default-list-tables.php b/wp-admin/includes/default-list-tables.php
index 78cf38a2e2..1a326d74f8 100644
--- a/wp-admin/includes/default-list-tables.php
+++ b/wp-admin/includes/default-list-tables.php
@@ -555,19 +555,8 @@ class WP_Posts_Table extends WP_List_Table {
>
comment_pending_count[$post->ID] ) ? $this->comment_pending_count[$post->ID] : 0;
- $pending_phrase = sprintf( __( '%s pending' ), number_format( $pending_comments ) );
- if ( $pending_comments )
- echo ' ';
- comments_number(
- "',
- "',
- "'
- );
- if ( $pending_comments )
- echo '';
+
+ $this->comments_bubble( $post->ID, $pending_comments );
?>
|
$column_display_name ) {
>
ID );
- $pending_phrase = sprintf( __( '%s pending' ), number_format( $left ) );
- if ( $left )
- echo ' ';
- comments_number(
- "',
- "',
- "'
- );
- if ( $left )
- echo '';
- ?>
+ $pending_comments = get_pending_comments_num( $post->ID );
+
+ $this->comments_bubble( $post->ID, $pending_comments );
+?>
|
\n";
echo '';
echo $post_link . '
';
- $pending_phrase = esc_attr( sprintf( __( '%s pending' ), number_format( $pending_comments ) ) );
- if ( $pending_comments )
- echo '';
- comments_number(
- "',
- "',
- "'
- );
- if ( $pending_comments )
- echo '';
+ $this->comments_bubble( $post->ID, $pending_comments );
echo ' ';
echo "
#";
echo '
';
diff --git a/wp-admin/includes/list-table.php b/wp-admin/includes/list-table.php
index 4fec2ecebe..d4c3286b5e 100644
--- a/wp-admin/includes/list-table.php
+++ b/wp-admin/includes/list-table.php
@@ -268,6 +268,33 @@ class WP_List_Table {
';
+
+ $link = "";
+
+ comments_number(
+ sprintf( $link, /* translators: comment count link */ _x( '0', 'comment count' ) ),
+ sprintf( $link, /* translators: comment count link */ _x( '1', 'comment count' ) ),
+ sprintf( $link, /* translators: comment count link: % will be substituted by comment count */ _x( '%', 'comment count' ) )
+ );
+
+ if ( $pending_comments )
+ echo '';
+ }
+
/**
* Get the current page number
*