[wp-hackers] Addition to check_comment(): return false if thepost
is older than 21 days
Mark Jaquith
mark.wordpress at txfx.net
Sat Oct 2 05:50:09 UTC 2004
Owen Winkler wrote:
>However, the check_comments code should be augmented to allow any of *three*
>states to be returned: Approved, Moderated, and Rejected. The missing
>functionality is the Rejected option, which would be very useful when a
>known spam IP (or other certain offender) is detected. Perhaps even a
>fourth option, Deleted, to dispose of unwanted comments immediately without
>notification or leaving them in the queue?
>
>Owen
>
Right. If we went with a numerically weighted approach, the user could
set a numerical level for triggering moderation and level for triggering
rejection and/or deletion. check_comments() would perform
do_action('comment_filtering', $approval_status); or something like
that, and then take the final $approval_status level and compare it to
the triggers set in the admin interface, and direct the comment accordingly.
More information about the hackers
mailing list