Created
August 12, 2013 06:55
-
-
Save sang4lv/6208716 to your computer and use it in GitHub Desktop.
Remove Version No
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'style_loader_src', 'idu_remove_version_no', 9999 ); | |
| add_filter( 'script_loader_src', 'idu_remove_version_no', 9999 ); | |
| //Hack to get rid of the bloody automatic version no | |
| function idu_remove_version_no($src) { | |
| if ( strpos( $src, 'ver=' ) ) { | |
| $src = remove_query_arg( 'ver', $src ); | |
| } | |
| return $src; | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment