yuzu13
Forum Replies Created
-
Thanks for checking. Sorry for making it overly complicated with AI. I’ll rewrite the GitHub issue in a simpler way. Could you please close this thread?
I’ve posted more details (including patch code) on the GitHub issue: https://github.com/johngodley/search-regex/issues/213
Forum: Plugins
In reply to: [WP Popular Posts] Popular Posts disapeared after wp6.4 updateHi @freemason,
I didn’t do anything specific for the “resources fail to load” issue, but after some time, it seemed to resolve itself naturally. I added some code to the
functions.phpfile of my WordPress theme. This code effectively removes the CDATA section from scripts. Here’s what I added:// Remove CDATA section function remove_cdata_script_wrapper($script) { $script = str_replace("type='text/javascript' id='wpp-json'", "type='application/json' id='wpp-json'", $script); $script = str_replace("/* <![CDATA[ */", "", $script); $script = str_replace("/* ]]> */", "", $script); return $script; } add_filter('script_loader_tag', 'remove_cdata_script_wrapper');You can add this snippet directly to your theme’s
functions.phpfile. Just make sure to back up your site before making any changes, in case you need to revert them.Let me know if you need more detailed instructions.
Best regards,
Forum: Plugins
In reply to: [WP Popular Posts] stuck at the loading animationI had the same symptoms, but after updating the “wpp.min.js” link, I deleted the cache and cleared the browser cookies and it now works correctly. It helped a lot. Thanks. FYI.