Make WordPress Core

Changeset 35752


Ignore:
Timestamp:
12/01/2015 08:47:24 PM (8 years ago)
Author:
wonderboymusic
Message:

Media: show Trash filter for Media list table when MEDIA_TRASH is true.

Props chacha102.
Fixes #34795.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-media-list-table.php

    r35241 r35752  
    124124        $type_links['detached'] = '<option value="detached"' . ( $this->detached ? ' selected="selected"' : '' ) . '>' . __( 'Unattached' ) . '</option>';
    125125
    126         if ( $this->is_trash ) {
     126        if ( $this->is_trash || ( defined( 'MEDIA_TRASH') && MEDIA_TRASH ) ) {
    127127            $type_links['trash'] = sprintf(
    128128                '<option value="trash"%s>%s</option>',
Note: See TracChangeset for help on using the changeset viewer.