diff --git a/wp-includes/comment.php b/wp-includes/comment.php index ca79d54a24..bf646a2a27 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -97,7 +97,7 @@ function check_comment( $author, $email, $url, $comment, $user_ip, $user_agent, * Check the comment fields for moderation keywords. If any are found, * fail the check for the given field by returning false. */ - $pattern = "#$word#i"; + $pattern = "#$word#iu"; if ( preg_match( $pattern, $author ) ) { return false; } @@ -1357,7 +1357,7 @@ function wp_check_comment_disallowed_list( $author, $email, $url, $comment, $use // in the spam words don't break things: $word = preg_quote( $word, '#' ); - $pattern = "#$word#i"; + $pattern = "#$word#iu"; if ( preg_match( $pattern, $author ) || preg_match( $pattern, $email ) || preg_match( $pattern, $url ) diff --git a/wp-includes/version.php b/wp-includes/version.php index fade8ddf86..8f9d8ead1f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-54887'; +$wp_version = '6.2-alpha-54888'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.