Make WordPress Core

Changeset 19304 for trunk/wp-signup.php


Ignore:
Timestamp:
11/15/2011 08:44:48 PM (13 years ago)
Author:
ryan
Message:

Introduce wp_no_robots(). Call it for pages that should never be indexed, regardless of blog privacy settings. Props nacin. fixes #19251

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-signup.php

    r18504 r19304  
    44require( dirname(__FILE__) . '/wp-load.php' );
    55
    6 add_action( 'wp_head', 'signuppageheaders' ) ;
     6add_action( 'wp_head', 'wp_no_robots' );
    77
    88require( './wp-blog-header.php' );
     
    1717}
    1818add_action( 'wp_head', 'do_signup_header' );
    19 
    20 function signuppageheaders() {
    21     echo "<meta name='robots' content='noindex,nofollow' />\n";
    22 }
    2319
    2420if ( !is_multisite() ) {
Note: See TracChangeset for help on using the changeset viewer.