WordPress.org

Forums

Comment moderation notification (2 posts)

  1. Muffinboy
    Member
    Posted 11 years ago #

    If a comment is placed in the moderation queue (and hence the message doesn't appear on the site directly), shouldn't the commenter be informed that his/her message is being held for moderation?

  2. misuba
    Member
    Posted 11 years ago #

    Yes, they should. Here's what I did:
    1) edited the almost-last line of wp-comments-post.php from this:
    header("Location: $location");
    to look like this:
    header("Location: $location?posted=1");
    2) added the following to index.php (anywhere's fine, you could even put it in wp-comments.php if you wanted):
    <?php if ($_REQUEST['posted'] == 1) { ?>
    <p id="post_ack">Your comment has been posted and will be visible once the
    site admin approves it. Sorry for the delay. Thanks for posting!
    <?php } ?>

    It's a bloody ugly hack, but hey, what isn't.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.