Make WordPress Core

Opened 5 years ago

Last modified 5 years ago

#22876 closed defect (bug)

Wrong robots meta output — at Version 2

Reported by: joostdevalk Owned by:
Milestone: 3.8 Priority: high
Severity: major Version: 3.3
Component: Template Keywords: has-patch needs-testing
Focuses: Cc:

Description (last modified by joostdevalk)

in default-filters.php, we add a new action:

if ( isset( $_GET['replytocom'] ) )
	add_action( 'wp_head', 'wp_no_robots' );

the issue is, wp_no_robots outputs noindex, nofollow. The noindex is fine, the nofollow stops any link equity from that URL, so that's actually a bad idea. Just noindex alone would be fine. Setting to priority high and severity to major as this is basically a regression.

Change History (2)

#1 @joostdevalk
5 years ago

  • Description modified (diff)

#2 @joostdevalk
5 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.