WordPress.org

Make WordPress Core

Changeset 15649


Ignore:
Timestamp:
09/23/10 23:11:49 (4 years ago)
Author:
scribu
Message:

Set $post_type to 'any' when taxonomies are involved (code resqued from r15613). See #12891

File:
1 edited

Legend:

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

    r15635 r15649  
    18301830                } 
    18311831            } 
     1832 
     1833            if ( empty($post_type) ) { 
     1834                $post_type = 'any'; 
     1835                $post_status_join = true; 
     1836            } elseif ( in_array('attachment', (array) $post_type) ) { 
     1837                $post_status_join = true; 
     1838            } 
    18321839        } 
    18331840 
Note: See TracChangeset for help on using the changeset viewer.