After update, cannot save child theme functions.php with script tags
-
Hello,
Been a fan of your plugins since I discovered them. I just updated to the recent version and found that when the following code is in my child theme functions.php, I cannot save it anymore. (I remove the contents of the script tags for brevity, and it makes no difference if that content is empty or not, I tested.)
function add_inline_script() { ?> <script></script> <?php } add_action( 'wp_footer', 'add_inline_script', 0 );
It’s only the <script></script> tags. When I remove the those tags from the code snippet, then it successfully saves the whole functions.php. Or if I deactivate BBQ Firewall, then it saves.
I found nothing in my error logs, but the error message when attempting to save is: “Something went wrong. Your change may not have been saved. Please try again. There is also a chance that you may need to manually fix and upload the file over https://FTP.”
Can you think of any reason why the latest version of the plugin would cause this? Before the update there were no issues. Certainly outputting JS through a child theme should work.
Thanks for checking,
Nate
- The topic ‘After update, cannot save child theme functions.php with script tags’ is closed to new replies.