Support » Plugin: Quick Adsense » Plugin spam with ajax request in admin

  • Resolved Vladimir


    Why plugin add to admin footer js code with ajax post request every page of admin panel? It can break other plugins!!!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author quickadsense


    Thanks for notifying us. The plugin adds a GDPR compliance message to the footer. We will improve it if possible. Kindly please note that currently we have more than 10000 successful installs and zero issues with the JS code.

    function quick_adsense_vi_adstxt_adsense_admin_footer() {
    	echo '<script type="text/javascript">';
    	echo "jQuery(document).ready(function() {";
    		echo "";
    			echo "jQuery('#jQuery('#quick_adsense_admin_notice_ajax').val()').val(), {";
    				echo "'action': 'quick_adsense_vi_admin_notice_dismiss',";
    				echo "'quick_adsense_admin_notice_nonce': jQuery('#quick_adsense_admin_notice_nonce').val(),";
    			echo "}, function(response) { }";
    		echo ");";
    	echo "});";
    	echo '</script>';

    This function executes on every page even if #quick_adsense_admin_notice_ajax doesn’t exists. In that case it runs ajax POST request to current page(not admin-ajax but current opened admin page) sometimes it can produce unexpected behavior.

    Plugin Author quickadsense


    Thanks for the details. We’ve just published an updated version with the improvements.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin spam with ajax request in admin’ is closed to new replies.