Fix media columns

git-svn-id: http://svn.automattic.com/wordpress/trunk@9878 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-11-25 19:26:53 +00:00
parent ed031adb99
commit 3117f4ee53
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\"";