WordPress.org

Make WordPress Core

Changeset 12819


Ignore:
Timestamp:
01/24/10 20:33:45 (4 years ago)
Author:
markjaquith
Message:

Include the post type, or else clicking All from pages will give you "all POSTS"

File:
1 edited

Legend:

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

    r12789 r12819  
    227227        $class = ' class="current"'; 
    228228    $status_links[] = "<li><a href='edit.php?author=$current_user->ID'$class>" . sprintf( _nx( 'Mine <span class="count">(%s)</span>', 'Mine <span class="count">(%s)</span>', $user_posts_count, 'posts' ), number_format_i18n( $user_posts_count ) ) . '</a>'; 
    229     $allposts = '?all_posts=1'; 
     229    $allposts = '&all_posts=1'; 
    230230} 
    231231 
    232232$total_posts = array_sum( (array) $num_posts ) - $num_posts->trash; 
    233233$class = empty($class) && empty($_GET['post_status']) ? ' class="current"' : ''; 
    234 $status_links[] = "<li><a href='edit.php{$allposts}'$class>" . sprintf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_posts, 'posts' ), number_format_i18n( $total_posts ) ) . '</a>'; 
     234$status_links[] = "<li><a href='edit.php?post_type=$post_type{$allposts}'$class>" . sprintf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_posts, 'posts' ), number_format_i18n( $total_posts ) ) . '</a>'; 
    235235 
    236236foreach ( get_post_stati(array(), 'objects') as $status ) { 
Note: See TracChangeset for help on using the changeset viewer.