[wp-trac] [WordPress Trac] #43753: Media Grid does not respect taxonomy URL parameters

WordPress Trac noreply at wordpress.org
Fri Apr 13 09:22:09 UTC 2018


#43753: Media Grid does not respect taxonomy URL parameters
--------------------------+-----------------------------
 Reporter:  mclaurent     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The media items are correctly filtered on the list page but the grid view
 does apparently not take the taxonomy filter into account.

 The list view was fixed in https://core.trac.wordpress.org/ticket/30584
 == Environment
 * WAMP
 * WP 4.9.5
 * Twenty Seventeen
 * PHP 7.1
 * 10.0.19-MariaDB


 == Steps to reproduce

 Add a category to the media by adding this to functions.php

 {{{#!php
 <?php
 add_action( 'init', 'jw_tax' );
 function jw_tax(){
         register_taxonomy( 'media_cats', 'attachment', array(
                 'label' => __( 'Media Categories', 'jw' ),
                 'hierarchical' => true,
         ));
 }
 }}}

 Same steps as the other ticket.
 1. Upload an attachment via Media > Add New
 2. Edit the attachment and add to new category
 3. Add more media but don't attach to the category.
 4. Go to the Media > Media categories, click on the number in the final
 column (1)
 5. You are redirected to the grid view of the media section. Note all
 items are showed.
 6. Switch to the list view and see the filter is applied correctly.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/43753>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list