Changeset 15497 for trunk/wp-admin/admin-ajax.php
- Timestamp:
- 08/12/2010 11:58:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r15496 r15497 628 628 require_once( './includes/default-list-tables.php' ); 629 629 $table = new WP_Comments_Table(); 630 631 global $comments; 632 633 if ( !$comments ) 630 $table->prepare_items(); 631 632 if ( !$table->has_items() ) 634 633 die('1'); 635 634 … … 638 637 639 638 $x = new WP_Ajax_Response(); 640 foreach ( (array) $comments as $comment ) {639 foreach ( $table->items as $comment ) { 641 640 get_comment( $comment ); 642 641 ob_start(); … … 661 660 require_once( './includes/default-list-tables.php' ); 662 661 $table = new WP_Comments_Table(); 663 664 global $comments; 665 666 if ( !$comments ) 662 $table->prepare_items(); 663 664 if ( !$table->has_items() ) 667 665 die('1'); 668 666 669 667 $comment_list_item = ''; 670 668 $x = new WP_Ajax_Response(); 671 foreach ( (array) $comments as $comment ) {669 foreach ( $table->items as $comment ) { 672 670 get_comment( $comment ); 673 671 ob_start();
Note: See TracChangeset
for help on using the changeset viewer.