[wp-trac] Re: [WordPress Trac] #8968: Spam comments should produce
'awaiting moderation' feedback
WordPress Trac
wp-trac at lists.automattic.com
Tue Jan 27 07:30:24 GMT 2009
#8968: Spam comments should produce 'awaiting moderation' feedback
--------------------------+-------------------------------------------------
Reporter: tellyworth | Owner: anonymous
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+-------------------------------------------------
Changes (by tellyworth):
* keywords: => has-patch
Comment:
The enclosed patch does this, and produces the awaiting moderation message
with themes that call wp_list_comments().
Themes that use their own comments code will produce slightly different
(but not necessarily bad) behaviour: the author will see the comment
posted normally without the 'awaiting moderation' message. No one else
sees it of course. Themes can adjust their code to the new behaviour by
changing their $comment->comment_approved conditional to check for != '1'
instead of == '0':
{{{
if ($comment->comment_approved != '1')
_e("\t\t\t\t\t<span class='unapproved'>Your comment is awaiting
moderation.</span>\n", 'sandbox')
}}}
Please note that this needs further testing, and no doubt theme developers
will want to discuss it.
--
Ticket URL: <http://trac.wordpress.org/ticket/8968#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list