WP/Plugin Version in HTML source
-
Hi, on any browser when you “view source”, this plugin reveals the following:
var wpversion = "4.6.1"; var agca_version = "5.6.4";
This is a potential threat. This should not be revealed. Can you work on this or is there any existing work around?
The full code for REF below: (all inline JS scripts on the page)
<script type="text/javascript"> var wpversion = "4.6.1"; var agca_version = "5.6.4"; var agca_debug = false; var jQueryScriptOutputted = false; var agca_context = "page"; var agca_orig_admin_menu = []; function initJQuery() { //if the jQuery object isn't available if (typeof(jQuery) == 'undefined') { if (! jQueryScriptOutputted) { //only output the script once.. jQueryScriptOutputted = true; //output the script (load it from google api) document.write("<scr" + "ipt type=\"text/javascript\" src=\"//ajax.googleapis.com/ajax/libs/jquery/3.0.0/jquery.min.js\"></scr" + "ipt>"); } setTimeout("initJQuery()", 50); } else { jQuery(function() { try { jQuery('#wpadminbar').show(); jQuery("#wphead #header-logo").css("display","none"); jQuery("ul#wp-admin-bar-root-default li#wp-admin-bar-wp-logo").css("display","none"); var alltext=""; alltext=""; jQuery('li#wp-admin-bar-my-account').css('cursor','default'); alltext = jQuery('li#wp-admin-bar-my-account').html(); if(alltext!=null){ var parts = alltext.split(','); alltext = "As-Salaam-Alaikum" + ", " + parts[1]; } jQuery("li#wp-admin-bar-my-account").html("<a href=\"#\" class=\"ab-item\">"+alltext+"</a>"); }catch(ex){} }); } } initJQuery(); </script>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘WP/Plugin Version in HTML source’ is closed to new replies.