mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 00:01:27 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@55685 git-svn-id: http://core.svn.wordpress.org/trunk@55197 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5afe551668
commit
b1474a8a20
@ -2359,7 +2359,7 @@ if ( ! function_exists( 'wp_create_nonce' ) ) :
|
|||||||
$uid = apply_filters( 'nonce_user_logged_out', $uid, $action );
|
$uid = apply_filters( 'nonce_user_logged_out', $uid, $action );
|
||||||
}
|
}
|
||||||
|
|
||||||
$token = wp_get_session_token( $action );
|
$token = wp_get_session_token();
|
||||||
$i = wp_nonce_tick( $action );
|
$i = wp_nonce_tick( $action );
|
||||||
|
|
||||||
return substr( wp_hash( $i . '|' . $action . '|' . $uid . '|' . $token, 'nonce' ), -12, 10 );
|
return substr( wp_hash( $i . '|' . $action . '|' . $uid . '|' . $token, 'nonce' ), -12, 10 );
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.3-alpha-55684';
|
$wp_version = '6.3-alpha-55685';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user