• Resolved holospirit

    (@holospirit)


    hi,

    the following script is placed behind the </html> tag on my site.

    how can i “disable” it?

    <script type=”text/javascript”>console.log(‘Asset CleanUp: “LIVE MODE” (test mode is not enabled, thus, all the plugin changes are visible for everyone: you, the logged-in administrator and the regular visitors)’);</script>

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @holospirit this script tag is only added for you (logged-in admin) to let you know the situation of the “Test Mode” in case you’re using the console for debugging purposes, so I wouldn’t worry about it much.

    I can update the current tag and add a filter that will allow you to use “add_filter” to remove the notice.

    Just to be sure, when you mentioned “Erroneous insertation” are you referring to the fact the message is incorrect and you’re not in LIVE Mode or it shows you the message when you’re not logged in? Or it’s just the message itself that bothers you and want to have it removed?

    Plugin Author Gabe Livan

    (@gabelivan)

    @holospirit I’ve just updated tag 1.3.1 (just re-download the plugin) which has the “wpacu_show_admin_console_notice” hook in /classes/Main.php that will allow you to hide the message. You just need to add the following code in functions.php (in your parent/child theme) or in a custom plugin, wherever you feel comfortable:

    add_filter( 'wpacu_show_admin_console_notice', '__return_false' );

    Thread Starter holospirit

    (@holospirit)

    wow – that was fast! really thanks a lot ??

    message was only in live as admin. i’m not bothered by it – it’s just because because the code is behind the </html> tag – maybe due to other plugins.

    Plugin Author Gabe Livan

    (@gabelivan)

    @holospirit glad I could help! I’ll revise the code and make sure it’s loaded within the BODY tag for maximum compatibility. Before that, there was only a signature HTML comment added there and it wouldn’t have been a problem to be after </html>, but now since there’s a SCRIPT tag as well, I’ll move it to the BODY to be sure there are no “surprises” in triggering the code in specific browsers.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Erroneous insertation of “live Mode” Notice’ is closed to new replies.