WordPress.org

Make WordPress Core

Changeset 11513


Ignore:
Timestamp:
06/03/2009 09:29:02 PM (9 years ago)
Author:
ryan
Message:

noindex for login. Props Viper007Bond, joostdevalk. fixes #10026

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r11450 r11513  
    4141function login_header($title = 'Log In', $message = '', $wp_error = '') {
    4242    global $error;
     43
     44    // Don't index any of these forms
     45    add_filter( 'pre_option_blog_public', create_function( '$a', 'return 0;' ) );
     46    add_action( 'login_head', 'noindex' );
    4347
    4448    if ( empty($wp_error) )
Note: See TracChangeset for help on using the changeset viewer.