Changeset 11742 for trunk/wp-admin/includes/template.php
- Timestamp:
- 07/25/2009 10:58:05 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/template.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r11741 r11742 754 754 $posts_columns['categories'] = __('Categories'); 755 755 $posts_columns['tags'] = __('Tags'); 756 if ( !isset($_GET['post_status']) || !in_array($_GET['post_status'], array('pending', 'draft', 'future')) ) 756 757 $post_status = 'all'; 758 if ( isset($_GET['post_status']) ) 759 $post_status = $_GET['post_status']; 760 elseif ( isset($_POST['_status']) ) 761 $post_status = $_POST['_status']; 762 763 if ( !in_array( $post_status, array('pending', 'draft', 'future') ) ) 757 764 $posts_columns['comments'] = '<div class="vers"><img alt="Comments" src="images/comment-grey-bubble.png" /></div>'; 758 765 $posts_columns['date'] = __('Date'); … … 801 808 $posts_columns['title'] = __('Title'); 802 809 $posts_columns['author'] = __('Author'); 810 803 811 $post_status = 'all'; 804 if ( !empty($_GET['post_status']) )812 if ( isset($_GET['post_status']) ) 805 813 $post_status = $_GET['post_status']; 806 if ( !in_array($post_status, array('pending', 'draft', 'future')) ) 814 elseif ( isset($_POST['_status']) ) 815 $post_status = $_POST['_status']; 816 817 if ( !in_array( $post_status, array('pending', 'draft', 'future') ) ) 807 818 $posts_columns['comments'] = '<div class="vers"><img alt="" src="images/comment-grey-bubble.png" /></div>'; 808 819 $posts_columns['date'] = __('Date'); … … 1363 1374 */ 1364 1375 function _post_row($a_post, $pending_comments, $mode) { 1365 global $post ;1376 global $post, $current_user; 1366 1377 static $rowclass; 1367 1378 … … 1371 1382 1372 1383 $rowclass = 'alternate' == $rowclass ? '' : 'alternate'; 1373 global $current_user;1374 1384 $post_owner = ( $current_user->ID == $post->post_author ? 'self' : 'other' ); 1375 1385 $edit_link = get_edit_post_link( $post->ID );
Note: See TracChangeset
for help on using the changeset viewer.