Title: Remove version information for scripts/stylesheets
Last modified: August 31, 2016

---

# Remove version information for scripts/stylesheets

 *  Resolved [limitless_design](https://wordpress.org/support/users/limitless_design/)
 * (@limitless_design)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/remove-version-information-for-scriptsstylesheets/)
 * Please detail for me the specific modifications MainWP uses to “Remove version
   information for scripts/stylesheets”
 * “Remove version information for scripts/stylesheets” was one of the flags as 
   a result of MainWP Security Scan. I initiated a manual fix that should have resolved
   the issue, but it was not recognized by MainWP — since the security flag remained.
   I opted to click the “Fix” icon to resolve. That did the trick, but I have no
   idea what modifications MainWP made. Since there are varied methods to address
   any of the identified security flags, it would be nice to know specifics about
   how MainWP addresses them. I’d like to know specifically what files were modified
   in this instance.
 * Thank you.
 * [https://wordpress.org/plugins/mainwp/](https://wordpress.org/plugins/mainwp/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [mainwp](https://wordpress.org/support/users/mainwp/)
 * (@mainwp)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/remove-version-information-for-scriptsstylesheets/#post-7052649)
 * Your MainWP Dashboard checks if the style_loader_src and script_loader_src filters
   currently added are sufficient to remove versions. If it is not guaranteed by
   these filters we mark this is insecure.
 *  Thread Starter [limitless_design](https://wordpress.org/support/users/limitless_design/)
 * (@limitless_design)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/remove-version-information-for-scriptsstylesheets/#post-7052651)
 * Thank you for the additional detail, but that does not answer my question.
 * What does MainWP do to “fix” this flag?
 *  Plugin Author [mainwp](https://wordpress.org/support/users/mainwp/)
 * (@mainwp)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/remove-version-information-for-scriptsstylesheets/#post-7052654)
 * Your Dashboard enables the style_loader_src and script_loader_src filter on the
   Child site in order to strip version tags from javascript and stylesheets.
 * The code is located in the MainWP Child plugin and you can review it here [https://github.com/mainwp/mainwp-child/blob/7019c798eaff5c6cc794d9f79bebf9d0778d4dd2/class/class-mainwp-security.php#L16](https://github.com/mainwp/mainwp-child/blob/7019c798eaff5c6cc794d9f79bebf9d0778d4dd2/class/class-mainwp-security.php#L16)
 * [Here is a blog post](https://premium.wpmudev.org/blog/how-to-hide-your-wordpress-version-number/)
   on how those functions work.
 *  Thread Starter [limitless_design](https://wordpress.org/support/users/limitless_design/)
 * (@limitless_design)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/remove-version-information-for-scriptsstylesheets/#post-7052659)
 * Thank you!
 *  [Wp-user865966](https://wordpress.org/support/users/vitago/)
 * (@vitago)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/remove-version-information-for-scriptsstylesheets/#post-8245090)
 * Just to add to limitless_design’s question: Is this safe to do?
    Like, can it
   break anything on the site, or is it in the source code it gets removed?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Remove version information for scripts/stylesheets’ is closed to new 
replies.

 * ![](https://ps.w.org/mainwp/assets/icon-256x256.png?rev=2734946)
 * [MainWP Dashboard: Self-hosted WordPress Management for Agencies](https://wordpress.org/plugins/mainwp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mainwp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mainwp/)
 * [Active Topics](https://wordpress.org/support/plugin/mainwp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mainwp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mainwp/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Wp-user865966](https://wordpress.org/support/users/vitago/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/remove-version-information-for-scriptsstylesheets/#post-8245090)
 * Status: resolved