Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#45090 closed feature request (duplicate)

Confirmation message for anonymous user pending comments if cookies checkbox is not checked

Reported by: dangerouspiper Owned by:
Priority: normal Milestone:
Component: Comments Version: 4.9.8
Severity: normal Keywords:
Cc: Focuses:

Description

I understand why cannot show a message for comments awaiting moderation to the user that has just post a new comment, if the cookies checkbox is not checked. But it looks like no action was made when the comment it's really posted and awaiting moderation. I solved this sending a get variable on redirect with the following code on my theme

<?php
function comment_posted( $location ) {
    $location .= '?commentsent=yes';
    return $location;
}
add_filter( 'comment_post_redirect', 'comment_posted' ); 

so I can check the variable "commentsent" and show a "general" message when a comment is posted.

Maybe could be helpful that the core sends a get (or post) variable to know if a comment was sent (or even better if a comment awaiting for moderation was sent).

I'm not a developer so excuse me if I'm saying something crazy...

Thank you

Change History (1)

#1 @SergeyBiryukov
8 years ago

  • Milestone Awaiting Review
  • Resolutionduplicate
  • Severity trivialnormal
  • Status newclosed
  • Summary Confirmation message for anonymous user pendding comments if cookies checkbox is not checkedConfirmation message for anonymous user pending comments if cookies checkbox is not checked

Hi @dangerouspiper, welcome to WordPress Trac!

Thanks for the ticket, we're already tracking this enhancement in #43857.

Note: See TracTickets for help on using tickets.