Changeset 3120 for trunk/wp-login.php
- Timestamp:
- 11/17/2005 12:51:34 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-login.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-login.php
r3044 r3120 171 171 $redirect_to = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $redirect_to); 172 172 173 if( !empty($_POST)) {173 if( $_POST ) { 174 174 $user_login = $_POST['log']; 175 $user_login = sanitize_user( $user_login ); 175 176 $user_pass = $_POST['pwd']; 176 177 $rememberme = $_POST['rememberme']; … … 186 187 do_action('wp_authenticate', array(&$user_login, &$user_pass)); 187 188 188 if ( $user_login && $user_pass) {189 if ( $_POST ) { 189 190 $user = new WP_User($user_login); 190 191 191 192 // If the user can't edit posts, send them to their profile. 192 193 if ( !$user->has_cap('edit_posts') && ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' ) ) 193 $redirect_to = get_settings('siteurl') . '/wp-admin/profile.php';194 194 $redirect_to = get_settings('siteurl') . '/wp-admin/profile.php'; 195 195 196 if ( wp_login($user_login, $user_pass, $using_cookie) ) { 196 197 if ( !$using_cookie ) … … 217 218 window.onload = focusit; 218 219 </script> 219 <style type="text/css">220 #log, #pwd, #submit {221 font-size: 1.7em;222 }223 </style>224 220 </head> 225 221 <body> … … 233 229 234 230 <form name="loginform" id="loginform" action="wp-login.php" method="post"> 235 <p><label><?php _e('Username:') ?><br /><input type="text" name="log" id="log" value=" " size="20" tabindex="1" /></label></p>231 <p><label><?php _e('Username:') ?><br /><input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1); ?>" size="20" tabindex="1" /></label></p> 236 232 <p><label><?php _e('Password:') ?><br /> <input type="password" name="pwd" id="pwd" value="" size="20" tabindex="2" /></label></p> 237 233 <p>
Note: See TracChangeset
for help on using the changeset viewer.