diff --git a/Util_Environment.php b/Util_Environment.php index 5630b12..3753cb6 100644 --- a/Util_Environment.php +++ b/Util_Environment.php @@ -835,7 +835,7 @@ static public function translate_file( $file ) { * Removes WP query string from URL */ static public function remove_query( $url ) { - $url = preg_replace( '~[&\?]+(ver=([a-z0-9-_\.]+|[0-9-]+))~i', '', $url ); + $url = preg_replace( '~(\?|&|&|&)+ver=[a-z0-9-_\.]+~i', '', $url ); return $url; }