Skip to content

Conversation

@doiftrue
Copy link

@doiftrue doiftrue commented Sep 18, 2023

If we have user: parameter specified in wp-cli.yml, every wp cli command is runs under the specified user. So wp_create_nonce( 'clear-opcache' ) will create nonce code for the logged-in user. But when then it will be checked with wp_verify_nonce() it will check nonce from query parameter for not-logged environment and the check will never be passed.

If we have `user:` parameter specified in `wp-cli.yml` every wp cli command is runs under the specified user. So `wp_create_nonce( 'clear-opcache' )` will create nonce code for the user. But when then it will be checked `wp_verify_nonce()` will check passed nonce for not-logged environment and the check will never passed.
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.

1 participant