Changeset 15630 for trunk/wp-admin/admin-ajax.php
- Timestamp:
- 09/18/2010 05:46:29 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r15606 r15630 625 625 626 626 $wp_list_table = get_list_table('comments'); 627 $wp_list_table->from_ajax = true; 628 627 629 $wp_list_table->prepare_items(); 628 630 … … 632 634 $x = new WP_Ajax_Response(); 633 635 foreach ( $wp_list_table->items as $comment ) { 634 get_comment( $comment );635 636 ob_start(); 636 $wp_list_table->single_row( $comment ->comment_ID, $mode, $comment_status, true, true);637 $wp_list_table->single_row( $comment ); 637 638 $comment_list_item = ob_get_contents(); 638 639 ob_end_clean(); … … 652 653 die('-1'); 653 654 654 $wp_list_table = get_list_table('comments'); 655 $wp_list_table = get_list_table('post-comments'); 656 655 657 $wp_list_table->prepare_items(); 656 658 … … 663 665 get_comment( $comment ); 664 666 ob_start(); 665 $wp_list_table->single_row( $comment ->comment_ID, 'single', false, false);667 $wp_list_table->single_row( $comment ); 666 668 $comment_list_item .= ob_get_contents(); 667 669 ob_end_clean(); … … 677 679 678 680 $wp_list_table = get_list_table('comments'); 681 $wp_list_table->checkbox = ( isset($_POST['checkbox']) && true == $_POST['checkbox'] ) ? 1 : 0; 679 682 680 683 $comment_post_ID = (int) $_POST['comment_post_ID']; … … 716 719 717 720 $position = ( isset($_POST['position']) && (int) $_POST['position']) ? (int) $_POST['position'] : '-1'; 718 $checkbox = ( isset($_POST['checkbox']) && true == $_POST['checkbox'] ) ? 1 : 0;719 721 720 722 $x = new WP_Ajax_Response(); … … 723 725 if ( 'dashboard' == $mode ) { 724 726 require_once( ABSPATH . 'wp-admin/includes/dashboard.php' ); 725 _wp_dashboard_recent_comments_row( $comment , false);727 _wp_dashboard_recent_comments_row( $comment ); 726 728 } else { 727 $wp_list_table->single_row( $comment ->comment_ID, $mode, false, $checkbox);729 $wp_list_table->single_row( $comment ); 728 730 } 729 731 $comment_list_item = ob_get_contents(); … … 754 756 755 757 $position = ( isset($_POST['position']) && (int) $_POST['position']) ? (int) $_POST['position'] : '-1'; 758 $comments_status = isset($_POST['comments_listing']) ? $_POST['comments_listing'] : ''; 759 756 760 $checkbox = ( isset($_POST['checkbox']) && true == $_POST['checkbox'] ) ? 1 : 0; 757 $comments_listing = isset($_POST['comments_listing']) ? $_POST['comments_listing'] : ''; 758 759 $wp_list_table = get_list_table('comments'); 761 $wp_list_table = get_list_table( $checkbox ? 'comments' : 'post-comments' ); 760 762 761 763 ob_start(); 762 $wp_list_table->single_row( $comment_id, $mode, $comments_listing, $checkbox);764 $wp_list_table->single_row( get_comment( $comment_id ) ); 763 765 $comment_list_item = ob_get_contents(); 764 766 ob_end_clean();
Note: See TracChangeset
for help on using the changeset viewer.