@@ 372-375 (lines=4) @@ | ||
369 | * @return bool |
|
370 | */ |
|
371 | public function __isset( $name ) { |
|
372 | if ( in_array( $name, $this->post_fields ) && 0 !== (int) $this->comment_post_ID ) { |
|
373 | $post = get_post( $this->comment_post_ID ); |
|
374 | return property_exists( $post, $name ); |
|
375 | } |
|
376 | } |
|
377 | ||
378 | /** |
|
@@ 390-393 (lines=4) @@ | ||
387 | * @return mixed |
|
388 | */ |
|
389 | public function __get( $name ) { |
|
390 | if ( in_array( $name, $this->post_fields ) ) { |
|
391 | $post = get_post( $this->comment_post_ID ); |
|
392 | return $post->$name; |
|
393 | } |
|
394 | } |
|
395 | } |
|
396 |