Ticket #31570: 31570.diff
File 31570.diff, 475 bytes (added by , 9 years ago) |
---|
-
wp-admin/includes/ajax-actions.php
2376 2376 $query = new WP_Query( $query ); 2377 2377 2378 2378 $posts = array_map( 'wp_prepare_attachment_for_js', $query->posts ); 2379 $posts = array_ filter( $posts);2379 $posts = array_values( array_filter( $posts ) ); 2380 2380 2381 2381 wp_send_json_success( $posts ); 2382 2382 }