| 3309 | | } elseif ( $this->is_singular && !is_null($this->post) ) { |
| 3310 | | $this->queried_object = $this->post; |
| 3311 | | $this->queried_object_id = (int) $this->post->ID; |
| | 3312 | } elseif ( $this->is_singular ) { |
| | 3313 | if ( isset( $this->post ) ) { |
| | 3314 | $this->queried_object = $this->post; |
| | 3315 | $this->queried_object_id = (int) $this->post->ID; |
| | 3316 | } elseif ( $this->get('p') ) { |
| | 3317 | $this->queried_object = get_post( $this->get('p')); |
| | 3318 | $this->queried_object_id = $this->get('p'); |
| | 3319 | } elseif ( $this->get('page_id') ) { |
| | 3320 | $this->queried_object = get_post( $this->get('page_id')); |
| | 3321 | $this->queried_object_id = $this->get('page_id'); |
| | 3322 | } elseif ( $this->get('name') ) { |
| | 3323 | $this->queried_object = $this->post = get_page_by_path( |
| | 3324 | $this->get('name'), |
| | 3325 | OBJECT, |
| | 3326 | $this->get('post_type') ? $this->get('post_type') :'post' |
| | 3327 | ); |
| | 3328 | $this->queried_object_id = (int) $this->post->ID; |
| | 3329 | } |
| 3313 | | $this->queried_object_id = (int) $this->get('author'); |
| 3314 | | $this->queried_object = get_userdata( $this->queried_object_id ); |
| | 3331 | if ( $this->get('author') ) { |
| | 3332 | $this->queried_object_id = (int) $this->get('author'); |
| | 3333 | $this->queried_object = get_userdata( $this->queried_object_id ); |
| | 3334 | } elseif ($this->get('author_name')) { |
| | 3335 | $this->queried_object = get_user_by( 'login', $this->get('author_name') ); |
| | 3336 | $this->queried_object_id = (int) $this->queried_object->ID; |
| | 3337 | } |