mirror of
https://github.com/10h30/wp-strava.git
synced 2026-06-05 15:10:01 +09:00
Require (rather than include) blocks if WP5+
This commit is contained in:
+1
-1
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user