diff options
Diffstat (limited to 'wp-login.php')
-rw-r--r-- | wp-login.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/wp-login.php b/wp-login.php index abb85e1..00dceee 100644 --- a/wp-login.php +++ b/wp-login.php @@ -35,7 +35,7 @@ function login_header($title = 'Login', $message = '') { <?php if ( ('rtl' == $wp_locale->text_direction) ) : ?> <link rel="stylesheet" href="<?php bloginfo('wpurl'); ?>/wp-admin/rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" /> <?php endif; ?> - <!--[if IE]><style type="text/css">#login h1 a { margin-top: 35px; } #login ul { padding-bottom: 65px; }</style><![endif]--><!-- Curse you, IE! --> + <!--[if IE]><style type="text/css">#login h1 a { margin-top: 35px; } #login #login_error { margin-bottom: 10px; }</style><![endif]--><!-- Curse you, IE! --> <script type="text/javascript"> function focusit() { document.getElementById('user_login').focus(); @@ -44,7 +44,7 @@ function login_header($title = 'Login', $message = '') { </script> <?php do_action('login_head'); ?> </head> -<body> +<body class="login"> <div id="login"><h1><a href="<?php echo apply_filters('login_headerurl', 'http://' . $current_site->domain . $current_site->path ); ?>" title="<?php echo apply_filters('login_headertitle', $current_site->site_name ); ?>"><span class="hide"><?php bloginfo('name'); ?></span></a></h1> <?php @@ -139,11 +139,11 @@ case 'retrievepassword' : <form name="lostpasswordform" id="lostpasswordform" action="wp-login.php?action=lostpassword" method="post"> <p> <label><?php _e('Username:') ?><br /> - <input type="text" name="user_login" id="user_login" class="input" value="<?php echo wp_specialchars(stripslashes($_POST['user_login']), 1); ?>" size="20" tabindex="10" /></label> + <input type="text" name="user_login" id="user_login" class="input" value="<?php echo attribute_escape(stripslashes($_POST['user_login'])); ?>" size="20" tabindex="10" /></label> </p> <p> <label><?php _e('E-mail:') ?><br /> - <input type="text" name="user_email" id="user_email" class="input" value="<?php echo wp_specialchars(stripslashes($_POST['user_email']), 1); ?>" size="25" tabindex="20" /></label> + <input type="text" name="user_email" id="user_email" class="input" value="<?php echo attribute_escape(stripslashes($_POST['user_email'])); ?>" size="25" tabindex="20" /></label> </p> <?php do_action('lostpassword_form'); ?> <p class="submit"><input type="submit" name="submit" id="submit" value="<?php _e('Get New Password »'); ?>" tabindex="100" /></p> @@ -266,7 +266,7 @@ default: <form name="loginform" id="loginform" action="http://<?php echo $current_blog->domain . $current_blog->path ?>wp-login.php" method="post"> <p> <label><?php _e('Username:') ?><br /> - <input type="text" name="log" id="user_login" class="input" value="<?php echo wp_specialchars(stripslashes($user_login), 1); ?>" size="20" tabindex="10" /></label> + <input type="text" name="log" id="user_login" class="input" value="<?php echo attribute_escape(stripslashes($user_login)); ?>" size="20" tabindex="10" /></label> </p> <p> <label><?php _e('Password:') ?><br /> @@ -276,7 +276,7 @@ default: <p><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /> <?php _e('Remember me'); ?></label></p> <p class="submit"> <input type="submit" name="submit" id="submit" value="<?php _e('Login'); ?> »" tabindex="100" /> - <input type="hidden" name="redirect_to" value="<?php echo wp_specialchars($redirect_to); ?>" /> + <input type="hidden" name="redirect_to" value="<?php echo attribute_escape($redirect_to); ?>" /> </p> </form> <ul> |