Ticket #14680 (closed defect (bug): fixed)

Opened 21 months ago

Last modified 19 months ago

Filter "comment_text" is only applied when "comment_max_links" option is TRUE

Reported by: hakre Owned by:
Priority: normal Milestone: 3.1
Component: General Version: 3.0.1
Severity: normal Keywords: has-patch
Cc:

Description

The check_comment() function in /wp-includes/comment.php does only appliy the comment_text filter if comment_max_links option is TRUE.

This leaves the $comment text unfiltered if that option results in FALSE but moderation keys are enabled.

Attachments

14680.patch Download (800 bytes) - added by hakre 21 months ago.

Change History

hakre21 months ago

  • Keywords has-patch added
  • Version set to 3.0.1

Related: #14681

  • Milestone changed from Awaiting Review to 3.1
  • Status changed from new to closed
  • Resolution set to fixed

(In [16357]) Always apply comment_text filter in check_comment(). Props hakre. Fixes #14680

Note: See TracTickets for help on using tickets.