Make WordPress Core

Ticket #10026: 10026.patch

File 10026.patch, 493 bytes (added by Viper007Bond, 17 years ago)

Add noindex via hook rather than hard coding

  • wp-login.php

     
    4141function login_header($title = 'Log In', $message = '', $wp_error = '') {
    4242        global $error;
    4343
     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' );
     47
    4448        if ( empty($wp_error) )
    4549                $wp_error = new WP_Error();
    4650        ?>