Skip to content

Commit 8b466fc

Browse files
Login and Registration: Check that action is a string in wp-login.php.
This prevents a PHP warning if an array is passed instead. Follow-up to [1974], [6643], [6711], [41782], [58023], [58093]. Props leedxw, dilipbheda. Fixes #63434. git-svn-id: https://develop.svn.wordpress.org/trunk@60239 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 33a6120 commit 8b466fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-login.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ function wp_login_viewport_meta() {
479479
* Check the request and redirect or display a form based on the current action.
480480
*/
481481

482-
$action = isset( $_REQUEST['action'] ) ? $_REQUEST['action'] : 'login';
482+
$action = isset( $_REQUEST['action'] ) && is_string( $_REQUEST['action'] ) ? $_REQUEST['action'] : 'login';
483483
$errors = new WP_Error();
484484

485485
if ( isset( $_GET['key'] ) ) {

0 commit comments

Comments
 (0)