mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-02 19:54:28 +00:00
Respect query vars for taxonomies passed as URL parameters when in grid mode of Media Library.
Fixes #30584. git-svn-id: https://develop.svn.wordpress.org/trunk@31037 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -24,8 +24,13 @@ if ( 'grid' === $mode ) {
|
||||
wp_enqueue_media();
|
||||
wp_enqueue_script( 'media-grid' );
|
||||
wp_enqueue_script( 'media' );
|
||||
|
||||
$vars = wp_edit_attachments_query_vars();
|
||||
unset( $vars['mode'], $vars['post_type'], $vars['post_status'], $vars['posts_per_page'] );
|
||||
|
||||
wp_localize_script( 'media-grid', '_wpMediaGridSettings', array(
|
||||
'adminUrl' => parse_url( self_admin_url(), PHP_URL_PATH ),
|
||||
'queryVars' => $vars
|
||||
) );
|
||||
|
||||
get_current_screen()->add_help_tab( array(
|
||||
|
||||
Reference in New Issue
Block a user