From 8e01f9f99b9cc39bed623543f77752c819132699 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 1 May 2018 21:47:21 +0000 Subject: [PATCH] Privacy: Move "Mine" filter for media items above "Trash". See #43820. Built from https://develop.svn.wordpress.org/trunk@43063 git-svn-id: http://core.svn.wordpress.org/trunk@42892 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-media-list-table.php | 13 +++++++------ wp-includes/version.php | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/wp-admin/includes/class-wp-media-list-table.php b/wp-admin/includes/class-wp-media-list-table.php index 00d0ece249..0e75f59f55 100644 --- a/wp-admin/includes/class-wp-media-list-table.php +++ b/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; } diff --git a/wp-includes/version.php b/wp-includes/version.php index ffb26b49b0..ae42ad043d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-43062'; +$wp_version = '5.0-alpha-43063'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.