diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index b10fe1415e..69dcc1629a 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -1646,6 +1646,10 @@ function get_comment_reply_link( $args = array(), $comment = null, $post = null $comment = get_comment( $comment ); + if ( empty( $comment ) ) { + return; + } + if ( empty( $post ) ) { $post = $comment->comment_post_ID; } diff --git a/wp-includes/version.php b/wp-includes/version.php index d6afba685f..2a0a38a403 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-beta1-46334'; +$wp_version = '5.3-beta1-46335'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.