Ticket #17935: admin-ajax.diff
File admin-ajax.diff, 666 bytes (added by , 13 years ago) |
---|
-
admin-ajax.php
1225 1225 1226 1226 $wp_list_table = _get_list_table('WP_Posts_List_Table'); 1227 1227 1228 $mode = $_POST['post_view']; 1229 $wp_list_table->display_rows( array( get_post( $_POST['post_ID'] ) ) ); 1230 1228 $post_type = $_POST['post_type']; 1229 $posts = get_posts( array('p' => $post_ID, 'post_type' => $post_type, 'post_status' => 'any', 'suppress_filters' => FALSE, 'posts_per_page' => 1) ); 1230 1231 if( isset($posts[0]) ) 1232 $wp_list_table->display_rows( array($posts[0]) ); 1233 1231 1234 exit; 1232 1235 break; 1233 1236 case 'inline-save-tax':