Reduce dependency on inline style. Props mdawaffe. fixes #6228
git-svn-id: http://svn.automattic.com/wordpress/trunk@7307 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -4,8 +4,15 @@
|
||||
<tr>
|
||||
|
||||
<?php $posts_columns = wp_manage_posts_columns(); ?>
|
||||
<?php foreach($posts_columns as $column_display_name) { ?>
|
||||
<th scope="col"><?php echo $column_display_name; ?></th>
|
||||
<?php foreach($posts_columns as $post_column_key => $column_display_name) {
|
||||
if ( 'cb' === $post_column_key )
|
||||
$class = ' class="check-column"';
|
||||
elseif ( 'comments' === $post_column_key )
|
||||
$class = ' class="num"';
|
||||
else
|
||||
$class = '';
|
||||
?>
|
||||
<th scope="col"<?php echo $class; ?>><?php echo $column_display_name; ?></th>
|
||||
<?php } ?>
|
||||
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user