From 709eaa542b8e3efb36976b97e0396a63090e358f Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 3 Jun 2009 21:29:02 +0000 Subject: [PATCH] noindex for login. Props Viper007Bond, joostdevalk. fixes #10026 git-svn-id: http://svn.automattic.com/wordpress/trunk@11513 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-login.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-login.php b/wp-login.php index 5c492e6e54..9e836f6809 100644 --- a/wp-login.php +++ b/wp-login.php @@ -41,6 +41,10 @@ if ( force_ssl_admin() && !is_ssl() ) { function login_header($title = 'Log In', $message = '', $wp_error = '') { global $error; + // Don't index any of these forms + add_filter( 'pre_option_blog_public', create_function( '$a', 'return 0;' ) ); + add_action( 'login_head', 'noindex' ); + if ( empty($wp_error) ) $wp_error = new WP_Error(); ?>