Media: show Trash filter for Media list table when `MEDIA_TRASH` is true.
Props chacha102. Fixes #34795. Built from https://develop.svn.wordpress.org/trunk@35752 git-svn-id: http://core.svn.wordpress.org/trunk@35716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cd9515d306
commit
d569b9609e
|
@ -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 ),
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-RC1-35751';
|
||||
$wp_version = '4.4-RC1-35752';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue