Make WordPress Core

Changeset 60239


Ignore:
Timestamp:
05/16/2025 01:21:35 PM (9 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-login.php

    r59753 r60239  
    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
Note: See TracChangeset for help on using the changeset viewer.