function quick_adsense_vi_adstxt_adsense_admin_footer() {
echo '<script type="text/javascript">';
echo "jQuery(document).ready(function() {";
echo "jQuery.post(";
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.