I need to remove comments from js files in my website.
Why?
what happens when we update wordpress version
You should never, EVER, edit core WordPress files.
Thanks for the reply
I have a requirement to remove HTML and Javascript comments from my website. Few comments i have found in the below core file.
“wp-includes/js/thickbox/thickbox.js”
example : //pass where to apply thickbox
// preload image
Please suggest!!
HTML and JavaScript comments are listed in vulnerability list
– HTML & JavaScript Comments vulnerabilities are disclosures of internal information caused by any comments in HTML or
JavaScript present in pages. The SmartAttack examines responses containing HTML or JavaScript, and reports any
comments observed therein. The significance of such vulnerabilities depends on the specific disclosures involved and the
policies of the organization.
There is no security issues associated with these comments. Do not edit WordPress core files.
Thanks so much for the quick response.
Removing and minify the JS, HTML, CSS is the best solution to speed up you site.
I don’t recommend you do it in WP core, only for the plugins or the theme is installed.
There are have many plugins like that, this is my plugin, I think it can help you make the change http://wpoffice.net/wp-secure-pro-plugin-wordpress/
🙂