Make WordPress Core


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

Fix some names and order of filters.

File:
1 edited

Legend:

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

    r7130 r7170  
    7676$status_links = array();
    7777$num_posts = wp_count_posts('page', 'readable');
     78$class = empty($_GET['post_status']) ? ' class="current"' : '';
     79$status_links[] = "<li><a href=\"edit-pages.php\"$class>".__('All Pages')."</a>";
    7880foreach ( $post_stati as $status => $label ) {
    7981    $class = '';
     
    8890    sprintf($label[2], $num_posts->$status) . '</a>';
    8991}
    90 $class = empty($_GET['post_status']) ? ' class="current"' : '';
    91 $status_links[] = "<li><a href=\"edit-pages.php\"$class>".__('All Pages')."</a>";
    9292echo implode(' |</li>', $status_links) . '</li>';
    9393unset($status_links);
Note: See TracChangeset for help on using the changeset viewer.