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

git-svn-id: https://develop.svn.wordpress.org/trunk@11513 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-06-03 21:29:02 +00:00
parent aff87ccafe
commit 71be7610db
1 changed files with 4 additions and 0 deletions

View File

@ -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();
?>