Opened 7 years ago
Closed 7 years ago
#43753 closed defect (bug) (invalid)
Media Grid does not respect taxonomy URL parameters
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.9.5 |
Component: | General | Keywords: | reporter-feedback |
Focuses: | Cc: |
Description
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 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.
- Upload an attachment via Media > Add New
- Edit the attachment and add to new category
- Add more media but don't attach to the category.
- Go to the Media > Media categories, click on the number in the final column (1)
- You are redirected to the grid view of the media section. Note all items are showed.
- Switch to the list view and see the filter is applied correctly.
Attachments (2)
Change History (6)
#2
@
7 years ago
- Keywords reporter-feedback added
Interesting.
I could not reproduce on my setup. The URL is also different being /wp-admin/upload.php?media_cats=one&post_type=attachment&mode=list
. What am I missing?
Note: See
TracTickets for help on using
tickets.
Media grid view with taxonomy filter