Combine Javascript files removing javascript when user is not logged in
-
We noticed after the WordPress 5.6 upgrade that our inline Javascript snippets were being removed from the HTML when Combine Javascript Files was enabled and the user was NOT logged in to our website. Once a user logged in, the snippets were present.
This functionality specifically broke in the plugins Woody Snippets, DebugPress, and Contact Form 7 with ReCaptcha enabled. Things didn’t work when the user was not logged in, but worked fine after they logged in.
Woody Snippets creates comments in the HTML where the JS is being inserted, and so we could actually see the code missing. I’m attaching two screenshots of Chrome DevTools – one before logging and and one after logging in. There are no other differences.
Logged in: https://prnt.sc/w44opg
Not Logged in: https://prnt.sc/w44p99
The topic ‘Combine Javascript files removing javascript when user is not logged in’ is closed to new replies.