WordPress.org

Make WordPress Core

Ticket #17935: query-ajax-list-table.diff

File query-ajax-list-table.diff, 616 bytes (added by wonderboymusic, 18 months ago)
  • wp-admin/includes/ajax-actions.php

     
    13661366                $parent = $parent_post->post_parent; 
    13671367                $level++; 
    13681368        } 
     1369         
     1370        $posts = get_posts( array( 'p' => $_POST['post_ID'], 'post_type' => 'any', 'post_status' => 'any', 'suppress_filters' => false, 'posts_per_page' => 1 ) ); 
     1371         
     1372        $wp_list_table->display_rows( $posts, $level ); 
    13691373 
    1370         $wp_list_table->display_rows( array( get_post( $_POST['post_ID'] ) ), $level ); 
    1371  
    13721374        wp_die(); 
    13731375} 
    13741376