Changeset 12819
- Timestamp:
- 01/24/2010 08:33:45 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r12789 r12819 227 227 $class = ' class="current"'; 228 228 $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'; 230 230 } 231 231 232 232 $total_posts = array_sum( (array) $num_posts ) - $num_posts->trash; 233 233 $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>'; 235 235 236 236 foreach ( get_post_stati(array(), 'objects') as $status ) {
Note: See TracChangeset
for help on using the changeset viewer.