comments-popup don't show moderation menssage
-
sorry text by google translate
Goodnight everyone.
I have a problem in comments-popup.php, when the user needs to finalize the publication of the review the message “Your comment is awaiting moderation.”I’m using wp_list_comments(‘callback=mytheme_comment’, $comments); to call a function in function.php
in function.php using
function mytheme_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>"> <div id="comment-<?php comment_ID(); ?>"> <div class="comment-author vcard"> <?php echo get_avatar($comment, $size = '48', $default = get_bloginfo('stylesheet_directory').'/images/default-avatar.gif' ); ?> <?php printf(__('<cite class="fn">%s</cite> <span class="says">says:</span>'), get_comment_author_link()) ?> </div> <?php if ($comment->comment_approved == '0') : ?> <?php _e('Your comment is awaiting moderation.') ?> <?php endif; ?> <div class="comment-meta commentmetadata"> comment_ID ) ) ?>"><?php printf(__('%1$s at %2$s'), get_comment_date(), get_comment_time()) ?> <?php edit_comment_link(__('(Edit)'),' ','') ?> </div> <?php comment_text() ?> <div class="reply"> <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?> </div> </div> <?php }
the popup shows already moderate comments, however not the message of moderation, that way the users ended up posting the same comment multiple times, pos think did not work sending.
any suggestion to solve the problem?
- The topic ‘comments-popup don't show moderation menssage’ is closed to new replies.