WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#14680 closed defect (bug) (fixed)

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

Reported by: hakre Owned by:
Milestone: 3.1 Priority: normal
Severity: normal Version: 3.0.1
Component: General Keywords: has-patch
Focuses: 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 (1)

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

Download all attachments as: .zip

Change History (5)

hakre4 years ago

comment:1 hakre4 years ago

  • Keywords has-patch added
  • Version set to 3.0.1

comment:2 hakre4 years ago

Related: #14681

comment:3 scribu4 years ago

  • Milestone changed from Awaiting Review to 3.1

comment:4 scribu4 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.