WordPress.org

Make WordPress Core

Changeset 43063


Ignore:
Timestamp:
05/01/2018 09:46:52 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Privacy: Move "Mine" filter for media items above "Trash".

See #43820.

File:
1 edited

Legend:

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

    r43062 r43063  
    122122            );
    123123        }
     124
    124125        $type_links['detached'] = '<option value="detached"' . ( $this->detached ? ' selected="selected"' : '' ) . '>' . __( 'Unattached' ) . '</option>';
     126
     127        $type_links['mine'] = sprintf(
     128            '<option value="mine"%s>%s</option>',
     129            selected( 'mine' === $filter, true, false ),
     130            _x( 'Mine', 'media items' )
     131        );
    125132
    126133        if ( $this->is_trash || ( defined( 'MEDIA_TRASH' ) && MEDIA_TRASH ) ) {
     
    131138            );
    132139        }
    133 
    134         $type_links['mine'] = sprintf(
    135             '<option value="mine"%s>%s</option>',
    136             selected( 'mine' === $filter, true, false ),
    137             _x( 'Mine', 'media items' )
    138         );
    139140
    140141        return $type_links;
Note: See TracChangeset for help on using the changeset viewer.