Changeset 6808 for trunk/wp-admin/edit.php
- Timestamp:
- 02/13/2008 09:30:26 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r6807 r6808 53 53 <?php 54 54 $status_links = array(); 55 $num_posts = wp_count_posts('post'); 55 56 foreach ( $post_stati as $status => $label ) { 56 57 $class = ''; … … 59 60 continue; 60 61 61 $num_posts = wp_count_posts('post', $status);62 62 if ( $status == $_GET['post_status'] ) 63 63 $class = ' class="current"'; 64 64 65 65 $status_links[] = "<li><a href=\"edit.php?post_status=$status\"$class>" . 66 sprintf($label[2], $num_posts ) . '</a>';66 sprintf($label[2], $num_posts->$status) . '</a>'; 67 67 } 68 68 $class = empty($_GET['post_status']) ? ' class="current"' : '';
Note: See TracChangeset
for help on using the changeset viewer.