mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-24 07:36:02 +00:00
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 = '') {
|
||||
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