[wp-trac] [WordPress Trac] #8968: Spam comments should produce 'awaiting moderation' feedback

WordPress Trac noreply at wordpress.org
Fri Aug 30 22:06:04 UTC 2013


#8968: Spam comments should produce 'awaiting moderation' feedback
-------------------------------------+-----------------------
 Reporter:  tellyworth               |       Owner:
     Type:  feature request          |      Status:  reopened
 Priority:  low                      |   Milestone:  3.7
Component:  Comments                 |     Version:  2.7
 Severity:  minor                    |  Resolution:
 Keywords:  has-patch needs-refresh  |
-------------------------------------+-----------------------

Comment (by nacin):

 {{{
 #!php
 <?php
 function wp_comment_is_pending( $comment ) {
     $comment = get_comment( $comment );
     $pending = '0' == $comment->comment_approved || 'spam' ==
 $comment->comment_approved;
     return apply_filters( 'wp_comment_is_pending', $pending, $comment );
 }
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/8968#comment:19>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list