From 7740e89de3e1bc0cc636120e3ca8ab9e97e4d3cc Mon Sep 17 00:00:00 2001 From: donncha Date: Fri, 4 Apr 2008 16:44:15 +0000 Subject: Merged with WordPress 2.5, unstable, only for testing git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1218 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-admin/edit-attachment-rows.php | 50 +++++++++++++++++++++++---------------- 1 file changed, 30 insertions(+), 20 deletions(-) (limited to 'wp-admin/edit-attachment-rows.php') diff --git a/wp-admin/edit-attachment-rows.php b/wp-admin/edit-attachment-rows.php index 8eb9066..407436b 100644 --- a/wp-admin/edit-attachment-rows.php +++ b/wp-admin/edit-attachment-rows.php @@ -4,22 +4,26 @@ - - + $column_display_name) { + if ( 'cb' === $post_column_key ) + $class = ' class="check-column"'; + elseif ( 'comments' === $post_column_key ) + $class = ' class="num"'; + else + $class = ''; +?> + > \n\t\n"; // Hack! -$class = ( $i_post > 15 || 'alternate' == $class) ? '' : 'alternate'; +while (have_posts()) : the_post(); +$class = 'alternate' == $class ? '' : 'alternate'; global $current_user; $post_owner = ( $current_user->ID == $post->post_author ? 'self' : 'other' ); ?> @@ -33,20 +37,20 @@ foreach($posts_columns as $column_name=>$column_display_name) { case 'cb': ?> - + - ID, array(60, 40), false, true); ?> + ID, array(80, 60), false, true); ?> -
+ ">
ID))); ?> ID); ?> @@ -81,21 +85,27 @@ foreach($posts_columns as $column_name=>$column_display_name) { break; case 'parent': - if ( $post_parent = get_post($post->post_parent) ) { - $title = get_the_title($post->post_parent); - if ( empty($title) ) - $title = __('(no title)'); + $title = __('(no title)'); // override below + if ( $post->post_parent > 0 ) { + if ( get_post($post->post_parent) ) { + $parent_title = get_the_title($post->post_parent); + if ( !empty($parent_title) ) + $title = $parent_title; + } + ?> + + +   + - - - +
ID ); $pending_phrase = sprintf( __('%s pending'), number_format( $left ) ); @@ -105,7 +115,7 @@ foreach($posts_columns as $column_name=>$column_display_name) { if ( $left ) echo ''; ?> - +