WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 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 7 years ago.

Download all attachments as: .zip

Change History (5)

@hakre
7 years ago

#1 @hakre
7 years ago

  • Keywords has-patch added
  • Version set to 3.0.1

#2 @hakre
7 years ago

Related: #14681

#3 @scribu
7 years ago

  • Milestone changed from Awaiting Review to 3.1

#4 @scribu
7 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.