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:
parent
fdf5bef23a
commit
709eaa542b
@ -41,6 +41,10 @@ if ( force_ssl_admin() && !is_ssl() ) {
|
|||||||
function login_header($title = 'Log In', $message = '', $wp_error = '') {
|
function login_header($title = 'Log In', $message = '', $wp_error = '') {
|
||||||
global $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) )
|
if ( empty($wp_error) )
|
||||||
$wp_error = new WP_Error();
|
$wp_error = new WP_Error();
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user