We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd244c0 commit 222a2e4Copy full SHA for 222a2e4
inc/front/enqueue.php
@@ -140,7 +140,9 @@ function rocket_cache_dynamic_resource( $src ) {
140
141
$full_src = ( substr( $src, 0, 2 ) === '//' ) ? rocket_add_url_protocol( $src ) : $src;
142
143
- switch ( current_filter() ) {
+ $current_filter = current_filter();
144
+
145
+ switch ( $current_filter ) {
146
case 'script_loader_src':
147
$extension = '.js';
148
break;
0 commit comments