Make WordPress Core

Ticket #34795: 34795.diff

File 34795.diff, 701 bytes (added by chacha102, 9 years ago)

Patch for #34795

  • wp-admin/includes/class-wp-media-list-table.php

    diff --git wp-admin/includes/class-wp-media-list-table.php wp-admin/includes/class-wp-media-list-table.php
    index 3e0f41c..08d9922 100644
    class WP_Media_List_Table extends WP_List_Table { 
    123123                }
    124124                $type_links['detached'] = '<option value="detached"' . ( $this->detached ? ' selected="selected"' : '' ) . '>' . __( 'Unattached' ) . '</option>';
    125125
    126                 if ( $this->is_trash || ( defined( 'MEDIA_TRASH') && MEDIA_TRASH ) ) {
     126                if ( $this->is_trash ) {
    127127                        $type_links['trash'] = sprintf(
    128128                                '<option value="trash"%s>%s</option>',
    129129                                selected( 'trash' === $filter, true, false ),