Make WordPress Core

Ticket #34795: 34795.2.diff

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

Corrected patch file.

  • 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 08d9922..3e0f41c 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 ) {
     126                if ( $this->is_trash || ( defined( 'MEDIA_TRASH') && MEDIA_TRASH ) ) {
    127127                        $type_links['trash'] = sprintf(
    128128                                '<option value="trash"%s>%s</option>',
    129129                                selected( 'trash' === $filter, true, false ),