Opened 7 years ago
Closed 7 years ago
#44342 closed defect (bug) (fixed)
Commenter cookie consent message should not be displayed if the cookie action isn't hooked
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.9.8 | Priority: | normal |
Severity: | normal | Version: | 4.9.6 |
Component: | Comments | Keywords: | has-patch commit fixed-major |
Focuses: | privacy | Cc: |
Description
If you do not at all wish for commenters to get cookies set in their browser when they comment, the functionality can be disabled by unhooking the wp_set_comment_cookies
callback. Example:
remove_action( 'set_comment_cookies', 'wp_set_comment_cookies' );
The Save my name, email, and website in this browser for the next time I comment
message should only be added to the comment form fields when wp_set_comment_cookies()
is hooked into the set_comment_cookies
action, otherwise the message is incorrect.
The message should be displayed conditionally based on has_action( 'set_comment_cookies', 'wp_set_comment_cookies' )
.
Attachments (1)
Change History (7)
#3
@
7 years ago
- Keywords commit fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
Reopen for 4.9.7.
#4
@
7 years ago
Hi guys
I saw that by deleting the code from the file comment template, after having sent a comment the comment is not visible, and it does not even show the writing: your comment is awaiting moderation.
how could you solve it?
In 43370: