diff --git a/wp-admin/edit-attachment-rows.php b/wp-admin/edit-attachment-rows.php
index 09ff821299..a7eb91db0c 100644
--- a/wp-admin/edit-attachment-rows.php
+++ b/wp-admin/edit-attachment-rows.php
@@ -93,6 +93,22 @@ foreach($posts_columns as $column_name=>$column_display_name) {
+
+ ID );
+ $pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
+ if ( $left )
+ echo '';
+ comments_number("', "', "');
+ if ( $left )
+ echo '';
+ ?>
+ |
+
|
diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php
index 8959ac23b0..da034e3003 100644
--- a/wp-admin/includes/template.php
+++ b/wp-admin/includes/template.php
@@ -304,6 +304,7 @@ function wp_manage_media_columns() {
$posts_columns['desc'] = _c('Description|media column header');
$posts_columns['date'] = _c('Date Added|media column header');
$posts_columns['parent'] = _c('Appears with|media column header');
+ $posts_columns['comments'] = '';
$posts_columns['location'] = _c('Location|media column header');
$posts_columns = apply_filters('manage_media_columns', $posts_columns);
@@ -599,7 +600,13 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true
$authordata = get_userdata($post->post_author);
$the_comment_status = wp_get_comment_status($comment->comment_ID);
$class = ('unapproved' == $the_comment_status) ? 'unapproved' : '';
- $post_link = '' . get_the_title($comment->comment_post_ID) . '';
+ if ( 'attachment' == $post->post_type )
+ $post_link = "";
+ elseif ( 'page' == $post->post_type )
+ $post_link = "";
+ else
+ $post_link = "";
+ $post_link .= get_the_title($comment->comment_post_ID) . '';
$author_url = get_comment_author_url();
if ( 'http://' == $author_url )
$author_url = '';
diff --git a/wp-admin/upload.php b/wp-admin/upload.php
index a4495a0113..1f248ac4d8 100644
--- a/wp-admin/upload.php
+++ b/wp-admin/upload.php
@@ -32,16 +32,17 @@ if ( isset($_GET['deleteit']) && isset($_GET['delete']) ) {
$title = __('Media Library');
$parent_file = 'edit.php';
wp_enqueue_script( 'admin-forms' );
-if ( 1 == $_GET['c'] )
- wp_enqueue_script( 'admin-comments' );
-
-require_once('admin-header.php');
if ( isset($_GET['paged']) && $start = ( intval($_GET['paged']) - 1 ) * 15 )
add_filter( 'post_limits', $limit_filter = create_function( '$a', "return 'LIMIT $start, 15';" ) );
list($post_mime_types, $avail_post_mime_types) = wp_edit_attachments_query();
$wp_query->max_num_pages = ceil( $wp_query->found_posts / 15 ); // We grab 20 but only show 15 ( 5 more for ajax extra )
+if ( is_singular() )
+ wp_enqueue_script( 'admin-comments' );
+
+require_once('admin-header.php');
+
if ( !isset( $_GET['paged'] ) )
$_GET['paged'] = 1;
@@ -51,7 +52,7 @@ if ( !isset( $_GET['paged'] ) )