mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Comments: Update arguments passed to the 'comment_text' filter in check_comment().
Pass null or empty values for the missing $comment and $args parameters of the 'check_comment' filter in `check_comment()`. Props boonebgorges, vaishu.agola27, SergeyBiryukov. Fixes #38314. git-svn-id: https://develop.svn.wordpress.org/trunk@40664 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -44,7 +44,7 @@ function check_comment($author, $email, $url, $comment, $user_ip, $user_agent, $
|
||||
return false;
|
||||
|
||||
/** This filter is documented in wp-includes/comment-template.php */
|
||||
$comment = apply_filters( 'comment_text', $comment );
|
||||
$comment = apply_filters( 'comment_text', $comment, null, array() );
|
||||
|
||||
// Check for the number of external links if a max allowed number is set.
|
||||
if ( $max_links = get_option( 'comment_max_links' ) ) {
|
||||
|
||||
Reference in New Issue
Block a user