Changeset 31037 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 01/03/2015 08:23:06 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r31029 r31037 2160 2160 2161 2161 $query = isset( $_REQUEST['query'] ) ? (array) $_REQUEST['query'] : array(); 2162 $ query = array_intersect_key( $query, array_flip(array(2162 $keys = array( 2163 2163 's', 'order', 'orderby', 'posts_per_page', 'paged', 'post_mime_type', 2164 2164 'post_parent', 'post__in', 'post__not_in', 'year', 'monthnum' 2165 ) ) ); 2166 2165 ); 2166 foreach ( get_taxonomies_for_attachments( 'objects' ) as $t ) { 2167 if ( $t->query_var && isset( $query[ $t->query_var ] ) ) { 2168 $keys[] = $t->query_var; 2169 } 2170 } 2171 2172 $query = array_intersect_key( $query, array_flip( $keys ) ); 2167 2173 $query['post_type'] = 'attachment'; 2168 2174 if ( MEDIA_TRASH
Note: See TracChangeset
for help on using the changeset viewer.