Make WordPress Core


Ignore:
Timestamp:
02/19/2008 06:13:20 AM (17 years ago)
Author:
ryan
Message:

Media Library design updates from Andy. see #5911

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r6823 r6910  
    787787        $whichcat = '';
    788788        $whichauthor = '';
     789        $whichmimetype = '';
    789790        $where = '';
    790791        $limits = '';
     
    11521153        }
    11531154
    1154         $where .= $search.$whichcat.$whichauthor;
     1155        // MIME-Type stuff for attachment browsing
     1156
     1157        if ( '' != $q['post_mime_type'] )
     1158            $whichmimetype = wp_post_mime_type_where($q['post_mime_type']);
     1159
     1160        $where .= $search.$whichcat.$whichauthor.$whichmimetype;
    11551161
    11561162        if ( empty($q['order']) || ((strtoupper($q['order']) != 'ASC') && (strtoupper($q['order']) != 'DESC')) )
Note: See TracChangeset for help on using the changeset viewer.