Opened 4 years ago
Closed 4 years ago
#5396 closed defect (bug) (fixed)
Direct requests to header.php and footer.php should return an x-robots-tag HTTP header
Reported by: | jonoaldersonwp | Owned by: | |
---|---|---|---|
Milestone: | Priority: | lowest | |
Component: | General | Keywords: | seo |
Cc: |
Description
For templating reasons, header.php and footer.php are able to be directly requested (on any path; e.g., https://wordpress.org/footer.php, https://wordpress.org/plugins/wordpress-seo/footer.php).
When these files are accessed directly, they should set an x-robots-tag
HTTP header, with a value of noindex, follow
.
Note: See
TracTickets for help on using
tickets.
Fixed in r16470-dotorg.