Changeset 5751 for trunk/wp-admin/edit.php
- Timestamp:
- 06/24/2007 06:25:49 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r5748 r5751 31 31 <?php 32 32 33 wp("what_to_show=posts$post_status_q&posts_per_page=15"); 33 if ( 'pending' === $_GET['post_status'] ) { 34 $order = 'ASC'; 35 $orderby = 'modified'; 36 } elseif ( 'draft' === $_GET['post_status'] ) { 37 $order = 'DESC'; 38 $orderby = 'modified'; 39 } else { 40 $order = 'DESC'; 41 $orderby = 'date'; 42 } 43 44 wp("what_to_show=posts$post_status_q&posts_per_page=15&order=$order&orderby=$orderby"); 34 45 35 46 // define the columns to display, the syntax is 'internal name' => 'display name' 36 47 $posts_columns = array(); 37 48 $posts_columns['id'] = '<div style="text-align: center">' . __('ID') . '</div>'; 38 if ( !in_array($_GET['post_status'], array('pending', 'draft')) ) 49 if ( 'draft' === $_GET['post_status'] ) 50 $posts_columns['modified'] = __('Modified'); 51 elseif ( 'pending' === $_GET['post_status'] ) 52 $posts_columns['modified'] = __('Submitted'); 53 else 39 54 $posts_columns['date'] = __('When'); 40 55 $posts_columns['title'] = __('Title');
Note: See TracChangeset
for help on using the changeset viewer.