From a69f591c55bfa9d823c74b16ea387e2e46988fc9 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 1 Dec 2015 20:47:24 +0000 Subject: [PATCH] Media: show Trash filter for Media list table when `MEDIA_TRASH` is true. Props chacha102. Fixes #34795. git-svn-id: https://develop.svn.wordpress.org/trunk@35752 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-media-list-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/class-wp-media-list-table.php b/src/wp-admin/includes/class-wp-media-list-table.php index 08d9922fc0..3e0f41cfd1 100644 --- a/src/wp-admin/includes/class-wp-media-list-table.php +++ b/src/wp-admin/includes/class-wp-media-list-table.php @@ -123,7 +123,7 @@ class WP_Media_List_Table extends WP_List_Table { } $type_links['detached'] = ''; - if ( $this->is_trash ) { + if ( $this->is_trash || ( defined( 'MEDIA_TRASH') && MEDIA_TRASH ) ) { $type_links['trash'] = sprintf( '', selected( 'trash' === $filter, true, false ),