[wp-hackers] User-defined check_comment diff

Owen Winkler ringmaster at midnightcircus.com
Tue Oct 19 16:56:24 UTC 2004


I've added some code to wp_new_comment that will allow for a single 
user-defined function to process comments in addition to check_comment 
as discussed previously: 
http://wordpress.org/pipermail/hackers_wordpress.org/2004-October/002055.html

Added to this version- Trackbacks, pingbacks, and comments that are 
moderated will generate a message to the admin.  Also added are a set of 
constants that allow a comment to be deleted (not added to the database 
even for moderation) at the discretion of the user_check_comment function.

To make this useful, wp-comments-post.php needs to be updated to use 
wp_new_comment(), which I'm also implemented.

Diffs are attached.

Owen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wp-comments-post.php.diff
Type: text/x-patch
Size: 2416 bytes
Desc: not available
Url : /pipermail/hackers_wordpress.org/attachments/20041019/b8b04631/wp-comments-post.php.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: functions-post.php.diff
Type: text/x-patch
Size: 2251 bytes
Desc: not available
Url : /pipermail/hackers_wordpress.org/attachments/20041019/b8b04631/functions-post.php.bin


More information about the hackers mailing list