Require (rather than include) blocks if WP5+

This commit is contained in:
Justin Foell
2022-08-26 14:31:19 -05:00
parent 1688b1f02f
commit dabe0a48c7
+1 -1
View File
@@ -243,7 +243,7 @@ class WPStrava {
);
// automatically load dependencies and version
$asset_file = include WPSTRAVA_PLUGIN_DIR . 'build/index.asset.php';
$asset_file = require WPSTRAVA_PLUGIN_DIR . 'build/index.asset.php';
wp_register_script(
'wp-strava-block',