Skip to content

admin/tools.php should use yourls_get_nonce_life()#3906

Merged
LeoColomb merged 1 commit intomasterfrom
tools-actual-nonce-life
Apr 25, 2025
Merged

admin/tools.php should use yourls_get_nonce_life()#3906
LeoColomb merged 1 commit intomasterfrom
tools-actual-nonce-life

Conversation

@dgw
Copy link
Copy Markdown
Member

@dgw dgw commented Apr 25, 2025

Asking the function instead of printing the constant directly will show the actual nonce lifetime in effect, in case a plugin is hooked into the get_nonce_life filter.

This was a little oddity I found while investigating #3905, which was unfortunately filed mere hours after we dropped 1.10.1 (so this tweak can't be included in the new patch).

Asking the function instead of printing the constant directly will show
the actual nonce lifetime in effect, in case a plugin is hooked into
the `get_nonce_life` filter.
@dgw dgw requested a review from a team April 25, 2025 06:57
@LeoColomb LeoColomb changed the title admin/tools.php should use yourls_get_nonce_life() admin/tools.php should use yourls_get_nonce_life() Apr 25, 2025
@LeoColomb LeoColomb merged commit 2c11a13 into master Apr 25, 2025
10 checks passed
@LeoColomb LeoColomb deleted the tools-actual-nonce-life branch April 25, 2025 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants