Changeset 51147
- Timestamp:
- 06/14/2021 11:41:07 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r51145 r51147 2990 2990 * @param array $query An array of query variables. 2991 2991 */ 2992 $query = apply_filters( 'ajax_query_attachments_args', $query );2992 $query = apply_filters( 'ajax_query_attachments_args', $query ); 2993 2993 $attachments_query = new WP_Query( $query ); 2994 2994 2995 $posts = array_map( 'wp_prepare_attachment_for_js', $attachments_query->posts );2996 $posts = array_filter( $posts );2995 $posts = array_map( 'wp_prepare_attachment_for_js', $attachments_query->posts ); 2996 $posts = array_filter( $posts ); 2997 2997 $total_posts = $attachments_query->found_posts; 2998 2998
Note: See TracChangeset
for help on using the changeset viewer.