# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: \wp-admin\includes
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
|
|
|
1850 | 1850 | if ( current_user_can( get_post_type_object( 'attachment' )->cap->read_private_posts ) ) |
1851 | 1851 | $query['post_status'] .= ',private'; |
1852 | 1852 | |
1853 | | $query = new WP_Query( $query ); |
| 1853 | $query = new WP_Query( apply_filters( 'ajax_attachments_query_args', $query ) ); |
1854 | 1854 | |
1855 | 1855 | $posts = array_map( 'wp_prepare_attachment_for_js', $query->posts ); |
1856 | 1856 | $posts = array_filter( $posts ); |