diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php
index 4360f14d09554..2762b77593308 100644
--- a/src/wp-includes/comment.php
+++ b/src/wp-includes/comment.php
@@ -3658,7 +3658,7 @@ function wp_handle_comment_submission( $comment_data ) {
$comment_type = 'comment';
if ( get_option( 'require_name_email' ) && ! $user->exists() ) {
- if ( '' == $comment_author_email || '' == $comment_author ) {
+ if ( '' === $comment_author_email || '' === $comment_author ) {
return new WP_Error( 'require_name_email', __( 'Error: Please fill the required fields.' ), 200 );
} elseif ( ! is_email( $comment_author_email ) ) {
return new WP_Error( 'require_valid_email', __( 'Error: Please enter a valid email address.' ), 200 );