Changeset 16114 for trunk/wp-includes/category-template.php
- Timestamp:
- 10/31/2010 11:02:17 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category-template.php
r16100 r16114 466 466 } 467 467 } else { 468 global $wp_query;469 470 468 if( !empty( $show_option_all ) ) 471 469 if ( 'list' == $style ) … … 475 473 476 474 if ( empty( $r['current_category'] ) && ( is_category() || is_tax() ) ) 477 $r['current_category'] = $wp_query->get_queried_object_id();475 $r['current_category'] = get_queried_object_id(); 478 476 479 477 if ( $hierarchical ) … … 1026 1024 function term_description( $term = 0, $taxonomy = 'post_tag' ) { 1027 1025 if ( !$term && ( is_tax() || is_tag() || is_category() ) ) { 1028 global $wp_query; 1029 $term = $wp_query->get_queried_object(); 1026 $term = get_queried_object(); 1030 1027 $taxonomy = $term->taxonomy; 1031 1028 $term = $term->term_id;
Note: See TracChangeset
for help on using the changeset viewer.