Ticket #41749: 41749.patch
File 41749.patch, 2.0 KB (added by , 7 years ago) |
---|
-
wp-login.php
42 42 $wp_error = new WP_Error(); 43 43 44 44 // Shake it! 45 $shake_error_codes = array( 'empty_password', 'empty_email', 'invalid_email', 'invalidcombo', 'empty_username', 'invalid_username', 'incorrect_password' );45 $shake_error_codes = array( 'empty_password', 'empty_email', 'invalid_email', 'invalidcombo', 'empty_username', 'invalid_username', 'incorrect_password', ); 46 46 /** 47 47 * Filters the error codes array for shaking the login form. 48 48 * … … 377 377 return true; 378 378 } 379 379 380 //381 // Main382 //383 384 380 $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'login'; 385 381 $errors = new WP_Error(); 386 382 … … 388 384 $action = 'resetpass'; 389 385 390 386 // validate action so as to default to the login screen 391 if ( !in_array( $action, array( 'postpass', 'logout', 'lostpassword', 'retrievepassword', 'resetpass', 'rp', 'register', 'login' ), true ) && false === has_filter( 'login_form_' . $action ) )387 if ( !in_array( $action, array( 'postpass', 'logout', 'lostpassword', 'retrievepassword', 'resetpass', 'rp', 'register', 'login', ), true ) && false === has_filter( 'login_form_' . $action ) ) 392 388 $action = 'login'; 393 389 394 390 nocache_headers(); -
wp-signup.php
282 282 $signup_defaults = array( 283 283 'blogname' => $blogname, 284 284 'blog_title' => $blog_title, 285 'errors' => $errors 285 'errors' => $errors, 286 286 ); 287 287 288 288 /** … … 378 378 379 379 $blog_meta_defaults = array( 380 380 'lang_id' => 1, 381 'public' => $public 381 'public' => $public, 382 382 ); 383 383 384 384 // Handle the language setting for the new site. … … 632 632 'user_email' => $user_email, 633 633 'blogname' => $blogname, 634 634 'blog_title' => $blog_title, 635 'errors' => $errors 635 'errors' => $errors, 636 636 ); 637 637 638 638 /**