mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-06 17:29:05 +00:00
Some tag api additions from andy.
git-svn-id: https://develop.svn.wordpress.org/trunk@5912 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1294,6 +1294,11 @@ class WP_Query {
|
||||
$category = &get_category($cat);
|
||||
$this->queried_object = &$category;
|
||||
$this->queried_object_id = (int) $cat;
|
||||
} else if ($this->is_tag) {
|
||||
$tag_id = $this->get('tag_id');
|
||||
$tag = &get_term($tag_id, 'post_tag');
|
||||
$this->queried_object = &$tag;
|
||||
$this->queried_object_id = (int) $tag_id;
|
||||
} else if ($this->is_posts_page) {
|
||||
$this->queried_object = & get_page(get_option('page_for_posts'));
|
||||
$this->queried_object_id = (int) $this->queried_object->ID;
|
||||
@@ -1402,4 +1407,4 @@ function setup_postdata($post) {
|
||||
return true;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user