mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Media Library design updates from Andy. see #5911
git-svn-id: https://develop.svn.wordpress.org/trunk@6910 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -786,6 +786,7 @@ class WP_Query {
|
||||
$distinct = '';
|
||||
$whichcat = '';
|
||||
$whichauthor = '';
|
||||
$whichmimetype = '';
|
||||
$where = '';
|
||||
$limits = '';
|
||||
$join = '';
|
||||
@@ -1151,7 +1152,12 @@ class WP_Query {
|
||||
$whichauthor .= ' AND (post_author = '.intval($q['author']).')';
|
||||
}
|
||||
|
||||
$where .= $search.$whichcat.$whichauthor;
|
||||
// MIME-Type stuff for attachment browsing
|
||||
|
||||
if ( '' != $q['post_mime_type'] )
|
||||
$whichmimetype = wp_post_mime_type_where($q['post_mime_type']);
|
||||
|
||||
$where .= $search.$whichcat.$whichauthor.$whichmimetype;
|
||||
|
||||
if ( empty($q['order']) || ((strtoupper($q['order']) != 'ASC') && (strtoupper($q['order']) != 'DESC')) )
|
||||
$q['order'] = 'DESC';
|
||||
|
||||
Reference in New Issue
Block a user