Ticket #28412: 28412.patch
| File 28412.patch, 661 bytes (added by , 12 years ago) |
|---|
-
wp-includes/query.php
3707 3707 $page_for_posts = get_option('page_for_posts'); 3708 3708 $this->queried_object = get_post( $page_for_posts ); 3709 3709 $this->queried_object_id = (int) $this->queried_object->ID; 3710 } elseif ( $this->is_singular && !is_null($this->post) ) {3710 } elseif ( $this->is_singular && isset( $this->post ) && !is_null( $this->post ) ) { 3711 3711 $this->queried_object = $this->post; 3712 3712 $this->queried_object_id = (int) $this->post->ID; 3713 3713 } elseif ( $this->is_author ) {