-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comment Query Loop: Unmoderated previews do not display. #40601
Labels
[Block] Comments
Affects the Comments Block - formerly known as Comments Query Loop
[Type] Bug
An existing feature does not function as intended
Comments
amustaque97
added
the
[Block] Comments
Affects the Comments Block - formerly known as Comments Query Loop
label
Apr 26, 2022
luisherranz
added
the
[Type] Bug
An existing feature does not function as intended
label
Apr 26, 2022
@c4rl0sbr4v0, I was able to reproduce the bug using the steps shared by @peterwilsoncc. I'm taking a look at the issue as well. 👀 |
github-actions
bot
added
the
[Status] In Progress
Tracking issues with work in progress
label
Apr 26, 2022
I've edited the description to document the anti-spam features added for previews via the moderation hash. It turns out spammers are smart. |
ockham
pushed a commit
that referenced
this issue
Apr 28, 2022
Do not include the author link regardless of the block settings ([see wp-develop source](https://github.com/WordPress/wordpress-develop/blob/3fdce9eb4b13ab9e9f52c5636b730aaa43740b12/src/wp-includes/class-walker-comment.php#L329-L333)). Issue mentioned in #40601.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
[Block] Comments
Affects the Comments Block - formerly known as Comments Query Loop
[Type] Bug
An existing feature does not function as intended
Description
In the comments template, WordPress displays a preview of unmoderated comments to the commenter.
These are either displayed based on cookies or a moderation hash if the commenter didn't consent to cookies during the commenting process.
https://github.com/WordPress/wordpress-develop/blob/77561d0a3010ff014de0b2210f39a59f0c4db01e/src/wp-includes/comment-template.php#L2145-L2153
The preview comment is displayed with:
Anti-spam features (edit)
Since the moderation hash preview feature was introduced in Core, a few anti-spam features needed to be added for the previews:
See https://core.trac.wordpress.org/ticket/49956 for further details.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Example from 2021.
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: