Changeset 5751
- Timestamp:
- 06/24/2007 06:25:49 AM (18 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-post-rows.php
r5707 r5751 30 30 <?php 31 31 break; 32 32 case 'modified': 33 ?> 34 <td><?php if ( '0000-00-00 00:00:00' ==$post->post_modified ) _e('Never'); else the_modified_time(__('Y-m-d \<\b\r \/\> g:i:s a')); ?></td> 35 <?php 36 break; 33 37 case 'date': 34 38 ?> -
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.