Changeset 6345 for trunk/wp-login.php
- Timestamp:
- 11/27/2007 08:03:33 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-login.php
r6343 r6345 69 69 } // End of login_header() 70 70 71 71 $http_post = ('POST' == $_SERVER['REQUEST_METHOD']); 72 72 switch ($action) { 73 73 … … 91 91 $user_pass = ''; 92 92 93 if ( $ _POST) {93 if ( $http_post ) { 94 94 if ( empty( $_POST['user_login'] ) ) 95 95 $errors['user_login'] = __('<strong>ERROR</strong>: The username field is empty.'); … … 213 213 } 214 214 215 if ( $ _POST) {215 if ( $http_post ) { 216 216 require_once( ABSPATH . WPINC . '/registration.php'); 217 217 … … 296 296 $redirect_to = $_REQUEST['redirect_to']; 297 297 298 if ( $ _POST) {298 if ( $http_post ) { 299 299 $user_login = $_POST['log']; 300 300 $user_login = sanitize_user( $user_login ); … … 313 313 314 314 // If cookies are disabled we can't log in even with a valid user+pass 315 if ( $ _POST&& empty($_COOKIE[TEST_COOKIE]) )315 if ( $http_post && empty($_COOKIE[TEST_COOKIE]) ) 316 316 $errors['test_cookie'] = __('<strong>ERROR</strong>: WordPress requires Cookies but your browser does not support them or they are blocked.'); 317 317 … … 335 335 } 336 336 337 if ( $ _POST&& empty( $user_login ) )337 if ( $http_post && empty( $user_login ) ) 338 338 $errors['user_login'] = __('<strong>ERROR</strong>: The username field is empty.'); 339 if ( $ _POST&& empty( $user_pass ) )339 if ( $http_post && empty( $user_pass ) ) 340 340 $errors['user_pass'] = __('<strong>ERROR</strong>: The password field is empty.'); 341 341
Note: See TracChangeset
for help on using the changeset viewer.