Make WordPress Core

Opened 3 years ago

Last modified 11 months ago

#38134 new enhancement

Allow wp_no_robots to be hooked

Reported by: tomdxw Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.6.1
Component: General Keywords:
Focuses: Cc:


It was decided in #22876 that

<meta name='robots' content='noindex,nofollow' />

would be replaced with

<meta name='robots' content='noindex,follow' />

But for those who would prefer noindex,nofollow there's no way to change it without a lot of hassle.

A change as simple as this would make it very flexible:

function wp_no_robots() {
        echo apply_filters('wp_no_robots', "<meta name='robots' content='noindex,follow' />\n");

Change History (0)

Note: See TracTickets for help on using tickets.