Changeset 3120
- Timestamp:
- 11/17/2005 12:51:34 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-footer.php
r2833 r3120 1 1 2 <div id="footer"><p><a href="http://wordpress.org/" ><img src="../wp-includes/images/wp-small.png" alt="WordPress" /></a><br />3 < ?php bloginfo('version'); ?> <br />2 <div id="footer"><p><a href="http://wordpress.org/" id="wordpress-logo"><img src="images/wordpress-logo.png" alt="WordPress" /></a></p> 3 <p> 4 4 <a href="http://codex.wordpress.org/"><?php _e('Documentation'); ?></a> — <a href="http://wordpress.org/support/"><?php _e('Support Forums'); ?></a> <br /> 5 <?php printf(__('%s seconds'), number_format(timer_stop(), 2)); ?>5 <?php bloginfo('version'); ?> — <?php printf(__('%s seconds'), number_format(timer_stop(), 2)); ?> 6 6 </p> 7 7 -
trunk/wp-admin/wp-admin.css
r3082 r3120 472 472 #login { 473 473 background: #fff; 474 border: 2px solid #a2a2a2;474 border: 1px solid #a2a2a2; 475 475 margin: 5em auto; 476 476 padding: 1.5em; … … 489 489 490 490 #login h1 { 491 background: url( ../wp-includes/images/wp-small.png) no-repeat;491 background: url(images/wordpress-logo.png) no-repeat top left; 492 492 margin-top: 0; 493 493 } … … 496 496 display: block; 497 497 text-indent: -1000px; 498 height: 66px; 499 border-bottom: none; 498 500 } 499 501 … … 514 516 } 515 517 518 #login #log, #pwd { 519 font-size: 1.7em; 520 width: 80%; 521 } 522 523 #login #submit { 524 font-size: 1.7em; 525 } 516 526 517 527 #postcustom .updatemeta, #postcustom .deletemeta { -
trunk/wp-includes/pluggable-functions.php
r3102 r3120 145 145 global $wpdb, $error; 146 146 147 if ( !$username )148 return false; 149 150 if ( !$password ) {147 if ( '' == $username ) 148 return false; 149 150 if ( '' == $password ) { 151 151 $error = __('<strong>Error</strong>: The password field is empty.'); 152 152 return false; -
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 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.