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
This commit is contained in:
parent
c8b7126cbf
commit
a69f591c55
@ -123,7 +123,7 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||
}
|
||||
$type_links['detached'] = '<option value="detached"' . ( $this->detached ? ' selected="selected"' : '' ) . '>' . __( 'Unattached' ) . '</option>';
|
||||
|
||||
if ( $this->is_trash ) {
|
||||
if ( $this->is_trash || ( defined( 'MEDIA_TRASH') && MEDIA_TRASH ) ) {
|
||||
$type_links['trash'] = sprintf(
|
||||
'<option value="trash"%s>%s</option>',
|
||||
selected( 'trash' === $filter, true, false ),
|
||||
|
Loading…
Reference in New Issue
Block a user