WP Remove Query Strings From Static Resources source code
By Rinku Y, on WordPress.org since 2017. 3,000+ active installs.
WP Remove Query Strings From Static Resources is a lightweight, zero-configuration WordPress plugin that automatically removes query strings (like ?ver=6.6) from your local CSS and JavaScript file URLs. Below is its source code for every one of its 9 releases, what changed in the latest one, and how often it ships.
What changed in 2.4
Released Jul 11, 2026, 2 days after 2.3- Added: Strict file extension checking to ensure only .css and .js files are processed, protecting dynamic PHP scripts.
- Added: Safely ignores external resources to prevent breaking third-party APIs like Google Maps.
- Improved: Internal code structure and reliability.
3 files changed since 2.3: 3 modified, 0 added, 0 removed.
- inc/classes/class-wprqsfsr-core.php modified, +643 bytes
- readme.txt modified, +599 bytes
- wp-remove-query-strings-from-static-resources.php modified, +41 bytes
Release history
9 releases since August 2024- 2.4 Jul 11, 2026 Added: Strict file extension checking to ensure only .css and .js files are processed, protecting dynamic PHP scripts.
- 2.3 Jul 8, 2026 Plugin check issues fixed
- 2.2 Jul 6, 2026 Fixed: Replaced unsafe strtok() with explode() to prevent conflicts with other plugins and WordPress core loops.
- 2.1 Jul 6, 2026
- 2.0 Jun 29, 2026 Improved: Removed unnecessary class property, filter callback now uses local variable