Changeset 7170

Show
Ignore:
Timestamp:
03/06/08 10:23:00 (6 months ago)
Author:
matt
Message:

Fix some names and order of filters.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/edit-comments.php

    r7166 r7170  
    9999$num_comments = wp_count_comments(); 
    100100$stati = array('moderated' => sprintf(__('Awaiting Moderation (%s)'), "<span class='comment-count'>$num_comments->moderated</span>"), 'approved' => __('Approved')); 
     101$class = ( '' === $comment_status ) ? ' class="current"' : ''; 
     102$status_links[] = "<li><a href=\"edit-comments.php\"$class>".__('All Comments')."</a>"; 
    101103foreach ( $stati as $status => $label ) { 
    102104    $class = ''; 
     
    107109    $status_links[] = "<li><a href=\"edit-comments.php?comment_status=$status\"$class>" . $label . '</a>'; 
    108110} 
    109 $class = ( '' === $comment_status ) ? ' class="current"' : ''; 
    110 $status_links[] = "<li><a href=\"edit-comments.php\"$class>".__('All Comments')."</a>"; 
    111111echo implode(' | </li>', $status_links) . '</li>'; 
    112112unset($status_links); 
  • trunk/wp-admin/edit-form-advanced.php

    r7146 r7170  
    260260 
    261261<div id="postexcerpt" class="postbox <?php echo postbox_classes('postexcerpt', 'post'); ?>"> 
    262 <h3><?php _e('Optional Excerpt') ?></h3> 
     262<h3><?php _e('Excerpt') ?></h3> 
    263263<div class="inside"><textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt"><?php echo $post->post_excerpt ?></textarea></div> 
    264264</div> 
  • 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); 
  • 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); 
  • trunk/wp-admin/includes/media.php

    r7160 r7170  
    930930    foreach ( $reals as $real ) 
    931931        $num_posts[$type] += $_num_posts[$real]; 
     932$class = empty($_GET['post_mime_type']) ? ' class="current"' : ''; 
     933$type_links[] = "<li><a href='" . remove_query_arg(array('post_mime_type', 'paged', 'm')) . "'$class>".__('All Types')."</a>"; 
    932934foreach ( $post_mime_types as $mime_type => $label ) { 
    933935    $class = ''; 
     
    941943    $type_links[] = "<li><a href='" . add_query_arg(array('post_mime_type'=>$mime_type, 'paged'=>false)) . "'$class>" . sprintf($label[2], "<span id='$mime_type-counter'>{$num_posts[$mime_type]}</span>") . '</a>'; 
    942944} 
    943 $class = empty($_GET['post_mime_type']) ? ' class="current"' : ''; 
    944 $type_links[] = "<li><a href='" . remove_query_arg(array('post_mime_type', 'paged', 'm')) . "'$class>".__('All Types')."</a>"; 
    945945echo implode(' | </li>', $type_links) . '</li>'; 
    946946unset($type_links); 
  • trunk/wp-admin/upload.php

    r7136 r7170  
    8989    foreach ( $reals as $real ) 
    9090        $num_posts[$type] += $_num_posts[$real]; 
     91$class = empty($_GET['post_mime_type']) ? ' class="current"' : ''; 
     92$type_links[] = "<li><a href=\"upload.php\"$class>".__('All Types')."</a>"; 
    9193foreach ( $post_mime_types as $mime_type => $label ) { 
    9294    $class = ''; 
     
    101103    sprintf($label[2], $num_posts[$mime_type]) . '</a>'; 
    102104} 
    103 $class = empty($_GET['post_mime_type']) ? ' class="current"' : ''; 
    104 $type_links[] = "<li><a href=\"upload.php\"$class>".__('All Types')."</a>"; 
    105105echo implode(' | </li>', $type_links) . '</li>'; 
    106106unset($type_links);