Make WordPress Core


Ignore:
Timestamp:
12/22/2010 07:03:43 PM (15 years ago)
Author:
ryan
Message:

Fix comment manipulation on edit post screen. Props garyc40. fixes #15876

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r17080 r17113  
    626626    set_current_screen( 'edit-comments' );
    627627
    628     $wp_list_table = get_list_table('WP_Comments_List_Table');
    629     $wp_list_table->checkbox = ( isset($_POST['checkbox']) && true == $_POST['checkbox'] ) ? 1 : 0;
    630 
    631628    $comment_post_ID = (int) $_POST['comment_post_ID'];
    632629    if ( !current_user_can( 'edit_post', $comment_post_ID ) )
     
    675672            _wp_dashboard_recent_comments_row( $comment );
    676673        } else {
     674            if ( 'single' == $_REQUEST['mode'] ) {
     675                $wp_list_table = get_list_table('WP_Post_Comments_List_Table');
     676            } else {               
     677                $wp_list_table = get_list_table('WP_Comments_List_Table');
     678            }
    677679            $wp_list_table->single_row( $comment );
    678680        }
Note: See TracChangeset for help on using the changeset viewer.