Make WordPress Core

Changeset 55685


Ignore:
Timestamp:
04/25/2023 02:55:28 PM (14 months ago)
Author:
SergeyBiryukov
Message:

General: Don't pass $action to wp_get_session_token() in wp_create_nonce().

The parameter appears to have been passed by accident, as the function does not accept any parameters.

Follow-up to [54218].

Props malavvasita, hztyfoon, dd32.
Fixes #58181.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pluggable.php

    r55642 r55685  
    23602360        }
    23612361
    2362         $token = wp_get_session_token( $action );
     2362        $token = wp_get_session_token();
    23632363        $i     = wp_nonce_tick( $action );
    23642364
Note: See TracChangeset for help on using the changeset viewer.