Changeset 26946 for branches/3.8/src/wp-includes/query.php
- Timestamp:
- 01/15/2014 07:33:23 AM (11 years ago)
- Location:
- branches/3.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.8
- Property svn:mergeinfo changed
/trunk merged: 26864,26874-26875
- Property svn:mergeinfo changed
-
branches/3.8/src/wp-includes/query.php
r26525 r26946 3265 3265 if ( $this->is_category || $this->is_tag || $this->is_tax ) { 3266 3266 if ( $this->is_category ) { 3267 $term = get_term( $this->get( 'cat' ), 'category' ); 3267 if ( $this->get( 'cat' ) ) { 3268 $term = get_term( $this->get( 'cat' ), 'category' ); 3269 } elseif ( $this->get( 'category_name' ) ) { 3270 $term = get_term_by( 'slug', $this->get( 'category_name' ), 'category' ); 3271 } 3268 3272 } elseif ( $this->is_tag ) { 3269 3273 $term = get_term( $this->get( 'tag_id' ), 'post_tag' ); … … 3272 3276 $query = reset( $tax_query_in_and ); 3273 3277 3274 if ( 'term_id' == $query['field'] ) 3275 $term = get_term( reset( $query['terms'] ), $query['taxonomy'] ); 3276 else 3277 $term = get_term_by( $query['field'], reset( $query['terms'] ), $query['taxonomy'] ); 3278 if ( $query['terms'] ) { 3279 if ( 'term_id' == $query['field'] ) { 3280 $term = get_term( reset( $query['terms'] ), $query['taxonomy'] ); 3281 } else { 3282 $term = get_term_by( $query['field'], reset( $query['terms'] ), $query['taxonomy'] ); 3283 } 3284 } 3278 3285 } 3279 3286
Note: See TracChangeset
for help on using the changeset viewer.