Comments: Include comment_content with html and without in blacklist_keys comparison.
After [38047], also include the comment_content with html in the preg_match against blacklist keys to match urls. Props ocean90. Fixes #37208. Built from https://develop.svn.wordpress.org/trunk@38048 git-svn-id: http://core.svn.wordpress.org/trunk@37989 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
240e3ec683
commit
2040186a5d
|
@ -1076,6 +1076,7 @@ function wp_blacklist_check($author, $email, $url, $comment, $user_ip, $user_age
|
|||
preg_match($pattern, $author)
|
||||
|| preg_match($pattern, $email)
|
||||
|| preg_match($pattern, $url)
|
||||
|| preg_match($pattern, $comment)
|
||||
|| preg_match($pattern, $comment_without_html)
|
||||
|| preg_match($pattern, $user_ip)
|
||||
|| preg_match($pattern, $user_agent)
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.6-beta2-38047';
|
||||
$wp_version = '4.6-beta2-38048';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue