Changeset 5087 for trunk/wp-includes/query.php
- Timestamp:
- 03/23/2007 12:59:21 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r5002 r5087 588 588 $this->queried_object =& get_page_by_path($qv['pagename']); 589 589 if ( !empty($this->queried_object) ) 590 $this->queried_object_id = $this->queried_object->ID;590 $this->queried_object_id = (int) $this->queried_object->ID; 591 591 else 592 592 unset($this->queried_object); … … 1206 1206 $category = &get_category($cat); 1207 1207 $this->queried_object = &$category; 1208 $this->queried_object_id = $cat;1208 $this->queried_object_id = (int) $cat; 1209 1209 } else if ($this->is_posts_page) { 1210 1210 $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; 1212 1212 } else if ($this->is_single) { 1213 1213 $this->queried_object = $this->post; 1214 $this->queried_object_id = $this->post->ID;1214 $this->queried_object_id = (int) $this->post->ID; 1215 1215 } else if ($this->is_page) { 1216 1216 $this->queried_object = $this->post; 1217 $this->queried_object_id = $this->post->ID;1217 $this->queried_object_id = (int) $this->post->ID; 1218 1218 } else if ($this->is_author) { 1219 $author_id = $this->get('author');1219 $author_id = (int) $this->get('author'); 1220 1220 $author = get_userdata($author_id); 1221 1221 $this->queried_object = $author; … … 1286 1286 global $pagenow; 1287 1287 1288 $id = $post->ID;1288 $id = (int) $post->ID; 1289 1289 1290 1290 $authordata = get_userdata($post->post_author);
Note: See TracChangeset
for help on using the changeset viewer.