diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 5de9531322..c62a920839 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -1904,7 +1904,7 @@ function wp_update_comment($commentarr) { } // Make sure that the comment post ID is valid (if specified). - if ( isset( $commentarr['comment_post_ID'] ) && ! get_post( $commentarr['comment_post_ID'] ) ) { + if ( ! empty( $commentarr['comment_post_ID'] ) && ! get_post( $commentarr['comment_post_ID'] ) ) { return 0; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 5208cd99b8..2cda9ff955 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-35850'; +$wp_version = '4.5-alpha-35853'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.