From 9d45056f97649eb03bc0d861f2b0a7d6691b0d2b Mon Sep 17 00:00:00 2001 From: azett Date: Fri, 11 Jan 2019 09:00:11 +0100 Subject: [PATCH] Bugfixes: Correct email validation in comments.php (see #c4ce531); Fixed brackets in core.wp-formatting.php (thanks Lubomir!) --- comments.php | 2 +- fp-includes/core/core.wp-formatting.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/comments.php b/comments.php index bf02060..0984843 100644 --- a/comments.php +++ b/comments.php @@ -114,7 +114,7 @@ function comment_validate() { */ if ($email) { - if (!filter_var($url, FILTER_VALIDATE_EMAIL)) { + if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { $errors ['email'] = $lerr ['email']; } } diff --git a/fp-includes/core/core.wp-formatting.php b/fp-includes/core/core.wp-formatting.php index c6868d9..1aa512f 100644 --- a/fp-includes/core/core.wp-formatting.php +++ b/fp-includes/core/core.wp-formatting.php @@ -66,7 +66,7 @@ function wptexturize($text) { } elseif (strstr($curl, '')) { if ($skip > 0) $skip--; - } elseif (strstr($curl, '