Changeset 47550 for trunk/src/wp-includes/class-wp-comment.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-comment.php
r46661 r47550 344 344 */ 345 345 public function __isset( $name ) { 346 if ( in_array( $name, $this->post_fields ) && 0 !== (int) $this->comment_post_ID ) {346 if ( in_array( $name, $this->post_fields, true ) && 0 !== (int) $this->comment_post_ID ) { 347 347 $post = get_post( $this->comment_post_ID ); 348 348 return property_exists( $post, $name ); … … 361 361 */ 362 362 public function __get( $name ) { 363 if ( in_array( $name, $this->post_fields ) ) {363 if ( in_array( $name, $this->post_fields, true ) ) { 364 364 $post = get_post( $this->comment_post_ID ); 365 365 return $post->$name;
Note: See TracChangeset
for help on using the changeset viewer.