[wp-trac] [WordPress Trac] #62760: Noindex URLs when they render unapproved comments
WordPress Trac
noreply at wordpress.org
Wed Jan 1 13:09:28 UTC 2025
#62760: Noindex URLs when they render unapproved comments
--------------------------+-----------------------------
Reporter: joostdevalk | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
When you leave a comment on a site and that comment goes into moderation,
by default, WordPress redirects you to the post permalink, with an
`unapproved` and a `moderation-hash` parameter. This means that a comment
that is ''not'' approved can be visible on the frontend of a site, and
still be indexed, because those URLs are not noindexed by WordPress.
More details in [https://joost.blog/wordpress-comment-cookies-and-caching/
my blog post], especially [https://joost.blog/wordpress-comment-cookies-
and-caching/#h-aside-the-seo-impact-of-the-wordpress-comment-system the
aside].
**To reproduce**
1. Make sure all comments go to moderation.
2. Leave a comment on a post.
3. See that you're redirect to a post with the `unapproved` parameter.
4. See that the URL is not noindex'ed.
**Expected results**
The URL ''should'' be noindex'ed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62760>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list