diff --git a/wp-includes/class-wp-comment.php b/wp-includes/class-wp-comment.php index 996815939d..c5a0bd9aaf 100644 --- a/wp-includes/class-wp-comment.php +++ b/wp-includes/class-wp-comment.php @@ -351,14 +351,16 @@ final class WP_Comment { * * @since 4.4.0 * - * @param string $name Property name. - * @return bool + * @param string $name Property to check if set. + * @return bool Whether the property is set. */ public function __isset( $name ) { if ( in_array( $name, $this->post_fields, true ) && 0 !== (int) $this->comment_post_ID ) { $post = get_post( $this->comment_post_ID ); return property_exists( $post, $name ); } + + return false; } /** diff --git a/wp-includes/class-wp-query.php b/wp-includes/class-wp-query.php index d25493dc5c..bc673191a8 100644 --- a/wp-includes/class-wp-query.php +++ b/wp-includes/class-wp-query.php @@ -4011,6 +4011,8 @@ class WP_Query { if ( in_array( $name, $this->compat_fields, true ) ) { return isset( $this->$name ); } + + return false; } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index b37a9890fe..aa3238388b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59336'; +$wp_version = '6.8-alpha-59337'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.