Make WordPress Core


Ignore:
Timestamp:
03/23/2007 12:59:21 AM (17 years ago)
Author:
matt
Message:

(int)er the dragon.

File:
1 edited

Legend:

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

    r5002 r5087  
    588588            $this->queried_object =& get_page_by_path($qv['pagename']);
    589589            if ( !empty($this->queried_object) )
    590                 $this->queried_object_id = $this->queried_object->ID;
     590                $this->queried_object_id = (int) $this->queried_object->ID;
    591591            else
    592592                unset($this->queried_object);
     
    12061206            $category = &get_category($cat);
    12071207            $this->queried_object = &$category;
    1208             $this->queried_object_id = $cat;
     1208            $this->queried_object_id = (int) $cat;
    12091209        } else if ($this->is_posts_page) {
    12101210            $this->queried_object = & get_page(get_option('page_for_posts'));
    1211             $this->queried_object_id = $this->queried_object->ID;
     1211            $this->queried_object_id = (int) $this->queried_object->ID;
    12121212        } else if ($this->is_single) {
    12131213            $this->queried_object = $this->post;
    1214             $this->queried_object_id = $this->post->ID;
     1214            $this->queried_object_id = (int) $this->post->ID;
    12151215        } else if ($this->is_page) {
    12161216            $this->queried_object = $this->post;
    1217             $this->queried_object_id = $this->post->ID;
     1217            $this->queried_object_id = (int) $this->post->ID;
    12181218        } else if ($this->is_author) {
    1219             $author_id = $this->get('author');
     1219            $author_id = (int) $this->get('author');
    12201220            $author = get_userdata($author_id);
    12211221            $this->queried_object = $author;
     
    12861286    global $pagenow;
    12871287
    1288     $id = $post->ID;
     1288    $id = (int) $post->ID;
    12891289
    12901290    $authordata = get_userdata($post->post_author);
Note: See TracChangeset for help on using the changeset viewer.