WordPress.org

Make WordPress Core

Changeset 21682


Ignore:
Timestamp:
08/31/2012 04:32:25 AM (8 years ago)
Author:
koopersmith
Message:

Fix a misnamed variable, which caused the query-attachments ajax handler to ignore all input. see #21390.

File:
1 edited

Legend:

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

    r21681 r21682  
    18301830 */
    18311831function wp_ajax_query_attachments() {
    1832     $qvs = isset( $_REQUEST['query'] ) ? (array) $_REQUEST['query'] : array();
    1833     $qvs = array_intersect_key( $qvs, array_flip( array( 's', 'order', 'orderby', 'posts_per_page', 'paged' ) ) );
     1832    $query = isset( $_REQUEST['query'] ) ? (array) $_REQUEST['query'] : array();
     1833    $query = array_intersect_key( $query, array_flip( array( 's', 'order', 'orderby', 'posts_per_page', 'paged' ) ) );
    18341834
    18351835    $query['post_type'] = 'attachment';
Note: See TracChangeset for help on using the changeset viewer.