Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#14680 closed defect (bug) (fixed)

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

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


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 (1)

14680.patch (800 bytes) - added by hakre 13 years ago.

Download all attachments as: .zip

Change History (5)

13 years ago

#1 @hakre
13 years ago

  • Keywords has-patch added
  • Version set to 3.0.1

#2 @hakre
13 years ago

Related: #14681

#3 @scribu
13 years ago

  • Milestone changed from Awaiting Review to 3.1

#4 @scribu
13 years ago

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.