Permalink
Browse files

Put post status inline with post name

git-svn-id: http://svn.automattic.com/wordpress/trunk@9157 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent 828a6fd commit 9936ab061a6d835d517285bc860f9c6df2fef339 azaozz committed Oct 14, 2008
Showing with 3 additions and 9 deletions.
  1. +3 −8 wp-admin/includes/template.php
  2. +0 −1 wp-admin/wp-admin.css
@@ -1259,10 +1259,8 @@ function _post_row($a_post, $pending_comments, $mode) {
case 'title':
$attributes = 'class="post-title column-title"' . $style;
?>
- <td <?php echo $attributes ?>><strong><?php if ( current_user_can( 'edit_post', $post->ID ) ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $title)); ?>"><?php echo $title ?></a><?php } else { echo $title; } ?></strong>
+ <td <?php echo $attributes ?>><strong><?php if ( current_user_can( 'edit_post', $post->ID ) ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $title)); ?>"><?php echo $title ?></a><?php } else { echo $title; }; _post_states($post); ?></strong>
<?php
- _post_states($post);
-
if ( 'excerpt' == $mode )
the_excerpt();
@@ -1445,10 +1443,8 @@ function display_page_row( $page, $level = 0 ) {
$attributes = 'class="post-title page-title column-title"' . $style;
$edit_link = get_edit_post_link( $page->ID );
?>
- <td <?php echo $attributes ?>><strong><?php if ( current_user_can( 'edit_post', $page->ID ) ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $title)); ?>"><?php echo $pad; echo $title ?></a><?php } else { echo $pad; echo $title; } ?></strong>
+ <td <?php echo $attributes ?>><strong><?php if ( current_user_can( 'edit_post', $page->ID ) ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $title)); ?>"><?php echo $pad; echo $title ?></a><?php } else { echo $pad; echo $title; }; _post_states($page); ?></strong>
<?php
- _post_states($page);
-
$actions = array();
$actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>';
$actions['inline'] = '<a href="#" class="editinline">' . __('Quick Edit') . '</a>';
@@ -3067,13 +3063,12 @@ function _post_states($post) {
if ( ! empty($post_states) ) {
$state_count = count($post_states);
$i = 0;
- echo '<div id="post-states">';
+ echo ' - ';
foreach ( $post_states as $state ) {
++$i;
( $i == $state_count ) ? $sep = '' : $sep = ', ';
echo "<span class='post-state'>$state$sep</span>";
}
- echo '</div>';
}
}
View
@@ -771,7 +771,6 @@ ul#adminmenu li.write-new-button a {
margin: 0;
padding: 0;
list-style: none;
- z-index: 1000;
}
#adminmenu li.wp-menu-open .wp-submenu {

0 comments on commit 9936ab0

Please sign in to comment.