litespeedtech / litespeedtech/lscache_wp
Drop-in wp_create_nonce generates error for Rest API
- Dominant language
- PHP
- Stars
- 257
- Forks
- 123
- PR merge metrics
- No merged PRs in 30d
Description
I'm currently experiencing an issue with the drop-in wp_create_nonce function. There seems to be an error and there is JSON output alongside the nonce itself, but only when called through the rest api.
It's "missing parameter url" but in French. Can't figure out why, but only happens when ESI are activated and requesting the HTML output through a REST api endpoint. 🤔 It's as if the ESI back-and-forth didn't include all the params passed in the request back to the ESI include and that would be needed to fully work...
Did I mess up my config or is it really a bug? 🧐
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the REST API request with ESI activated and inspect the interaction between the drop-in wp_create_nonce function and the ESI request. Done means the nonce response contains no accompanying JSON error and the required url parameter is preserved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100