Make WordPress Core

Changeset 19304 for trunk/wp-login.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-login.php

    r19281 r19304  
    4343
    4444    // Don't index any of these forms
    45     add_filter( 'pre_option_blog_public', '__return_zero' );
    46     add_action( 'login_head', 'noindex' );
     45    add_action( 'login_head', 'wp_no_robots' );
    4746
    4847    if ( empty($wp_error) )
Note: See TracChangeset for help on using the changeset viewer.