Make WordPress Core


Ignore:
Timestamp:
01/03/2015 08:23:06 AM (10 years ago)
Author:
wonderboymusic
Message:

Respect query vars for taxonomies passed as URL parameters when in grid mode of Media Library.

Fixes #30584.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/upload.php

    r29725 r31037  
    2525    wp_enqueue_script( 'media-grid' );
    2626    wp_enqueue_script( 'media' );
     27
     28    $vars = wp_edit_attachments_query_vars();
     29    unset( $vars['mode'], $vars['post_type'], $vars['post_status'], $vars['posts_per_page'] );
     30
    2731    wp_localize_script( 'media-grid', '_wpMediaGridSettings', array(
    2832        'adminUrl' => parse_url( self_admin_url(), PHP_URL_PATH ),
     33        'queryVars' => $vars
    2934    ) );
    3035
Note: See TracChangeset for help on using the changeset viewer.