Make WordPress Core


Ignore:
Timestamp:
03/06/2008 10:23:00 AM (18 years ago)
Author:
matt
Message:

Fix some names and order of filters.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit.php

    r7130 r7170  
    8383$status_links = array();
    8484$num_posts = wp_count_posts('post', 'readable');
     85$class = empty($_GET['post_status']) ? ' class="current"' : '';
     86$status_links[] = "<li><a href=\"edit.php\"$class>".__('All Posts')."</a>";
    8587foreach ( $post_stati as $status => $label ) {
    8688    $class = '';
     
    9799    sprintf($label[2], $num_posts->$status) . '</a>';
    98100}
    99 $class = empty($_GET['post_status']) ? ' class="current"' : '';
    100 $status_links[] = "<li><a href=\"edit.php\"$class>".__('All Posts')."</a>";
    101101echo implode(' |</li>', $status_links) . '</li>';
    102102unset($status_links);
Note: See TracChangeset for help on using the changeset viewer.