Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#5701 closed enhancement (invalid)

Add a pre-comment action

Reported by: arickmann's profile arickmann Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

I may have missed this but I was searching for an action that triggers prior to comment handling in wp-comments-post.php to allow the post variables to be altered.

It seems that most spam plugins allow the comment to be added and then roll back instead of preventing the comment entering the database at all.

Change History (2)

#1 @fitztrev
18 years ago

  • Keywords comments removed
  • Resolution set to invalid
  • Status changed from new to closed

There is a filter: preprocess_comment (applied on line 648 of wp-inc/comment.php)

Also, in the past, I've accomplished what you're trying to do by using the following: http://wordpress.pastebin.com/f65e58aa8 But of course, the filter is the better way to do it.

#2 @Nazgul
18 years ago

  • Milestone 2.5 deleted
Note: See TracTickets for help on using tickets.