Fix media columns

git-svn-id: https://develop.svn.wordpress.org/trunk@9878 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-11-25 19:26:53 +00:00
parent b2ea4b8184
commit 250eb8ef47
1 changed files with 2 additions and 3 deletions

View File

@ -26,6 +26,8 @@ if ( ! defined('ABSPATH') ) die();
if ( have_posts() ) {
add_filter('the_title','wp_specialchars');
$alt = '';
$posts_columns = get_column_headers('upload');
$hidden = get_hidden_columns('upload');
while (have_posts()) : the_post();
$alt = ( 'alternate' == $alt ) ? '' : 'alternate';
global $current_user;
@ -36,9 +38,6 @@ $att_title = _draft_or_post_title();
<tr id='post-<?php echo $id; ?>' class='<?php echo trim( $alt . ' author-' . $post_owner . ' status-' . $post->post_status ); ?>' valign="top">
<?php
$posts_columns = get_column_headers('media');
$hidden = get_hidden_columns('media');
foreach ($posts_columns as $column_name => $column_display_name ) {
$class = "class=\"$column_name column-$column_name\"";