From 31ed6e771e12b3f7d99dd99bb4aefb488ed3f2b4 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 1 May 2018 21:46:52 +0000 Subject: [PATCH] Privacy: Move "Mine" filter for media items above "Trash". See #43820. git-svn-id: https://develop.svn.wordpress.org/trunk@43063 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-media-list-table.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/wp-admin/includes/class-wp-media-list-table.php b/src/wp-admin/includes/class-wp-media-list-table.php index 00d0ece249..0e75f59f55 100644 --- a/src/wp-admin/includes/class-wp-media-list-table.php +++ b/src/wp-admin/includes/class-wp-media-list-table.php @@ -121,8 +121,15 @@ class WP_Media_List_Table extends WP_List_Table { $label[0] ); } + $type_links['detached'] = ''; + $type_links['mine'] = sprintf( + '', + selected( 'mine' === $filter, true, false ), + _x( 'Mine', 'media items' ) + ); + if ( $this->is_trash || ( defined( 'MEDIA_TRASH' ) && MEDIA_TRASH ) ) { $type_links['trash'] = sprintf( '', @@ -131,12 +138,6 @@ class WP_Media_List_Table extends WP_List_Table { ); } - $type_links['mine'] = sprintf( - '', - selected( 'mine' === $filter, true, false ), - _x( 'Mine', 'media items' ) - ); - return $type_links; }