Make WordPress Core


Ignore:
Timestamp:
08/21/2007 06:39:45 PM (17 years ago)
Author:
ryan
Message:

Some tag api additions from andy.

File:
1 edited

Legend:

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

    r5907 r5912  
    12951295            $this->queried_object = &$category;
    12961296            $this->queried_object_id = (int) $cat;
     1297        } else if ($this->is_tag) {
     1298            $tag_id = $this->get('tag_id');
     1299            $tag = &get_term($tag_id, 'post_tag');
     1300            $this->queried_object = &$tag;
     1301            $this->queried_object_id = (int) $tag_id;
    12971302        } else if ($this->is_posts_page) {
    12981303            $this->queried_object = & get_page(get_option('page_for_posts'));
Note: See TracChangeset for help on using the changeset viewer.