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

git-svn-id: http://svn.automattic.com/wordpress/trunk@11513 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-06-03 21:29:02 +00:00
parent fdf5bef23a
commit 709eaa542b
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();
?>