Make WordPress Core


Ignore:
Timestamp:
07/25/2009 10:58:05 AM (16 years ago)
Author:
azaozz
Message:

Fix QE returned data for Pending and Scheduled posts screens, use jQuery.live() for QE events, fixes #10478

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r11741 r11742  
    754754    $posts_columns['categories'] = __('Categories');
    755755    $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') ) )
    757764        $posts_columns['comments'] = '<div class="vers"><img alt="Comments" src="images/comment-grey-bubble.png" /></div>';
    758765    $posts_columns['date'] = __('Date');
     
    801808    $posts_columns['title'] = __('Title');
    802809    $posts_columns['author'] = __('Author');
     810
    803811    $post_status = 'all';
    804     if ( !empty($_GET['post_status']) )
     812    if ( isset($_GET['post_status']) )
    805813        $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') ) )
    807818        $posts_columns['comments'] = '<div class="vers"><img alt="" src="images/comment-grey-bubble.png" /></div>';
    808819    $posts_columns['date'] = __('Date');
     
    13631374 */
    13641375function _post_row($a_post, $pending_comments, $mode) {
    1365     global $post;
     1376    global $post, $current_user;
    13661377    static $rowclass;
    13671378
     
    13711382
    13721383    $rowclass = 'alternate' == $rowclass ? '' : 'alternate';
    1373     global $current_user;
    13741384    $post_owner = ( $current_user->ID == $post->post_author ? 'self' : 'other' );
    13751385    $edit_link = get_edit_post_link( $post->ID );
Note: See TracChangeset for help on using the changeset viewer.