Make WordPress Core

Changeset 25279


Ignore:
Timestamp:
09/06/2013 03:17:35 PM (13 years ago)
Author:
nacin
Message:

Add new ajax_query_attachments_args filter.

props alex-ye.
fixes #24285.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r25025 r25279  
    18351835                $query['post_status'] .= ',private';
    18361836
     1837        /**
     1838         * Filter the arguments passed to WP_Query during an AJAX call for querying attachments.
     1839         *
     1840         * @since 3.7.0
     1841         * @param array $query Array of query variables.
     1842         */
     1843        $query = apply_filters( 'ajax_query_attachments_args', $query );
    18371844        $query = new WP_Query( $query );
    18381845
Note: See TracChangeset for help on using the changeset viewer.