treehouse : what would you like to learn today?
Web Design Web Development iOS Development

WP: Plugin outputting version number

  • Hi everyone,

    Hope you all are having a good start to the week!

    I was taking a look at my
    <head>
    and noticed the plugin, AG Custom Admin, is outputting my Wordpress version number which I learned is bad (and have used Chris' function to remove the generator), however; the script by AG Custom Admin still reports it.

    <script type="text/javascript">      
    var wpversion = "3.4.1";
    var agca_version = "1.2.6.4";
    var jQueryScriptOutputted = false;
    var agca_context = "page";
    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=\"http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js\"></scr&quot; + "ipt>");
    }
    setTimeout("initJQuery()", 50);
    } else {
    jQuery(function() {
    try
    {
    jQuery('#wpadminbar').show();
    if(isWPHigherOrEqualThan("3.3")){ }

    if(isWPHigherOrEqualThan("3.3")){
    }

    jQuery("#wphead #header-logo").css("display","none");
    jQuery("ul#wp-admin-bar-root-default li#wp-admin-bar-wp-logo").css("display","none");
    }catch(ex){}
    });
    }
    }
    initJQuery();
    </script>


    Should I be concerned? If so, do you have any better plugins and/or tips on how to remove this?

    Thank you,
    Stephanie