Opened 9 years ago
Closed 8 years ago
#34401 closed enhancement (fixed)
Search mechanisms complaning of access denied error on wp-login.php?action=logout
Reported by: | rodrigosprimo | Owned by: | jeremyfelt |
---|---|---|---|
Milestone: | 4.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Login and Registration | Keywords: | has-patch |
Focuses: | Cc: |
Description
In one of my sites, Google Webmaster is complaining of access denied errors in thousands of variations of the wp-login.php?action=login URL (with different values for the _wpnonce param).
Those pages are generated by _default_wp_die_handler() and this function doesn't include a noindex robots meta tag in the header. I'm assuming adding such meta tag is the best way to fix this issue. It seems reasonable to me to have noindex on error pages but I'm not sure if this is a good idea since this is not my area of expertise.
I noticed that I'm not the only one having this issue:
https://wordpress.org/support/topic/google-showing-login-access-denied
https://productforums.google.com/forum/#!topic/webmasters/XnOFn2CgGyQ
https://forums.digitalpoint.com/threads/webmaster-url-crawl-error-for-wordpress-wp-login-php-action-logout-_wpnonce.2219262/
Thoughts?
Attachments (2)
Change History (15)
#5
@
8 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
wp_no_robots()
isn't defined until wp-includes/general-template.php
is loaded. It's possible that a rare scenario in wp_not_installed()
causes wp_die()
to fire before wp_no_robots()
is available, causing a fatal error.
We may need to move wp_no_robots()
up a bit or just insert the meta tag manually in this case.
This ticket was mentioned in Slack in #core by jeremyfelt. View the logs.
8 years ago
#8
@
8 years ago
34401.diff adds a function_exists
check for wp_no_robots()
, similar to what we do for language_attributes()
. See #3231.
This ticket was mentioned in Slack in #core by chriscct7. View the logs.
8 years ago
#10
@
8 years ago
- Owner changed from johnbillion to jeremyfelt
- Status changed from reopened to reviewing
In 37210: