mirror of
git://develop.git.wordpress.org/
synced 2025-02-28 18:43:03 +01:00
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:
parent
aff87ccafe
commit
71be7610db
@ -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();
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user