Support » Requests and Feedback » Bad feeling with wp-include/comment-template.php

  • Hi there,

    I’d like to share with you my negative feedback about the default comments templating in WP. If I’m not on the wrong way it works as follow about the comments moderation flow.

    -> if a comment is not yet moderated
          -> then print "Your comment is awaiting moderation)
    -> now print comment's meta and text

    So we have moderation active, comments awaiting moderation, but all the contents are publicly displayed.

    Am I wrong about this?

    Thanks for clarifications 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Plugin Review Team Rep

    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:

    1. Person posts comment.
    2. 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.
    3. Comment is approved
    4. 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

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Plugin Review Team Rep

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Bad feeling with wp-include/comment-template.php’ is closed to new replies.