[wp-trac] [WordPress Trac] #27140: possible bug in pre_comment_approved filter
WordPress Trac
noreply at wordpress.org
Mon Feb 17 18:12:28 UTC 2014
#27140: possible bug in pre_comment_approved filter
-----------------------------+----------------------
Reporter: realblueorange | Owner:
Type: feature request | Status: closed
Priority: normal | Milestone:
Component: Comments | Version:
Severity: normal | Resolution: wontfix
Keywords: | Focuses:
-----------------------------+----------------------
Comment (by johnbillion):
It is a bit odd that we don't have a means of discarding a comment
completely. `wp_insert_comment()` is called regardless of the return value
of the `pre_comment_approved` filter, and there's nothing else in `wp-
comments-post.php` or `wp_new_comment()` that can be used to discard a
comment without inserting it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27140#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list