Changeset 21836
- Timestamp:
- 09/13/2012 05:15:13 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r21792 r21836 2045 2045 if ( '' !== $q['menu_order'] ) 2046 2046 $where .= " AND $wpdb->posts.menu_order = " . $q['menu_order']; 2047 2047 2048 2048 // If a month is specified in the querystring, load that month 2049 2049 if ( $q['m'] ) { … … 3193 3193 $term_array = (array) $term; 3194 3194 3195 if ( empty( $term ) ) // Only a Taxonomy provided 3196 return isset( $queried_object->taxonomy ) && count( $tax_array ) && in_array( $queried_object->taxonomy, $tax_array ); 3195 // Check that the taxonomy matches. 3196 if ( ! ( isset( $queried_object->taxonomy ) && count( $tax_array ) && in_array( $queried_object->taxonomy, $tax_array ) ) ) 3197 return false; 3198 3199 // Only a Taxonomy provided. 3200 if ( empty( $term ) ) 3201 return true; 3197 3202 3198 3203 return isset( $queried_object->term_id ) &&
Note: See TracChangeset
for help on using the changeset viewer.