Commit 8885272
Fix: declare ajaxurl global so FAQ accordion expand works
WordPress normally sets `var ajaxurl = '...'` as a standalone global.
The static export only preserved it inside the `get` object:
var get = {"ajaxurl":"", ...}
So `ajaxurl` was an undeclared variable. Accessing it in
`EWD_UFAQ_Reveal_FAQ` threw a ReferenceError that aborted the
function before `removeClass('ewd-ufaq-hidden')` could run,
silently preventing any FAQ from expanding.
Fix: declare `var ajaxurl` at the top of ewd-ufaq.js, reading
from `get.ajaxurl` if available, otherwise defaulting to ''.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent c2d9843 commit 8885272
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
0 commit comments