Skip to content

Commit ad45870

Browse files
committed
Don’t create the cache busting file if the version is null
1 parent d5dc4ea commit ad45870

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

inc/front/enqueue.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ function rocket_browser_cache_busting( $src, $current_filter = '' ) {
7474
return $src;
7575
}
7676

77+
if ( empty( $query ) ) {
78+
return $src;
79+
}
80+
7781
$relative_src_path = ltrim( $relative_src_path . '?' . $query, '/' );
7882
$full_src_path = ABSPATH . dirname( $relative_src_path );
7983
/*

0 commit comments

Comments
 (0)