I’m not sure if you’re wrong because I’m not sure what you’re saying 🙂
The flow, IF you have moderation on, is this:
- Person posts comment.
- If comment is caught for moderation, the theme shows “Your comment is awaiting moderation” (note – NOT all themese do!) and they can see their own comment, but no one else can.
- Comment is approved
- Comment displays for everyone
Thanks for your reply Ipstenu.
I understood what you said. And I was talking about the same topic. But what code are you referencing? You’re talking about theme’s template, but I was focused on the default template used in case the theme hasn’t one.
I’ve a site w/o custom comment template and WP is using the one produced by comment()
or html5_comment()
. If that code is anyway meant to be used, the flow is different there:
<?php if ( '0' == $comment->comment_approved ) : ?>
<p class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.' ); ?></p>
<?php endif; ?>
</footer><!-- .comment-meta -->
<div class="comment-content">
<?php comment_text(); ?>
</div><!-- .comment-content -->
<div class="reply">
<?php comment_reply_link( array_merge( $args, array( 'add_below' => 'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
</div><!-- .reply -->
What am I loosing?
Cheers
You’re talking about theme’s template, but I was focused on the default template used in case the theme hasn’t one.
I wasn’t talking about themes or anything other than the actual workflow one goes through when commenting… So the phrase ‘Your comment is awaiting moderation’ can be overridden by a theme, is all that I meant.
Anyway.
So we have moderation active, comments awaiting moderation, but all the contents are publicly displayed.
Am I wrong about this?
You’re wrong in that the contents (comments?) are NOT publicly displayed. They show up for admins, and for the person who made the comment, but as long as the comment is not approved, it will not show to the rest of your visitors.