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
This commit is contained in:
Sergey Biryukov 2018-05-01 21:47:21 +00:00
parent 6c2470a091
commit 8e01f9f99b
2 changed files with 8 additions and 7 deletions

View File

@ -121,8 +121,15 @@ class WP_Media_List_Table extends WP_List_Table {
$label[0]
);
}
$type_links['detached'] = '<option value="detached"' . ( $this->detached ? ' selected="selected"' : '' ) . '>' . __( 'Unattached' ) . '</option>';
$type_links['mine'] = sprintf(
'<option value="mine"%s>%s</option>',
selected( 'mine' === $filter, true, false ),
_x( 'Mine', 'media items' )
);
if ( $this->is_trash || ( defined( 'MEDIA_TRASH' ) && MEDIA_TRASH ) ) {
$type_links['trash'] = sprintf(
'<option value="trash"%s>%s</option>',
@ -131,12 +138,6 @@ class WP_Media_List_Table extends WP_List_Table {
);
}
$type_links['mine'] = sprintf(
'<option value="mine"%s>%s</option>',
selected( 'mine' === $filter, true, false ),
_x( 'Mine', 'media items' )
);
return $type_links;
}

View File

@ -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.