Skip to content

Commit 18419cc

Browse files
committed
fix (Tools/Assets): set empty array as default value for param $strategy
1 parent 259e0ec commit 18419cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/Tools/Assets.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Assets {
2121
*
2222
* @return bool
2323
*/
24-
public function register_script( string $handle, string $src, array $deps = [], $ver = false, array $strategy = [ 'strategy' => 'defer' ] ): bool {
24+
public function register_script( string $handle, string $src, array $deps = [], $ver = false, array $strategy = [] ): bool {
2525
return \wp_register_script( $handle, \get_theme_file_uri( $src ), $deps, $ver, $strategy );
2626
}
2727

0 commit comments

Comments
 (0)