mirror of
https://github.com/10h30/wp-strava.git
synced 2026-07-13 19:56:41 +09:00
Remove JS image loader for URL
This commit is contained in:
@@ -215,6 +215,14 @@ class WPStrava {
|
||||
filemtime( WPSTRAVA_PLUGIN_DIR . 'build/style.css' )
|
||||
);
|
||||
|
||||
wp_localize_script(
|
||||
'wp-strava-block',
|
||||
'wpStrava',
|
||||
array(
|
||||
'placeholderActivityImg' => WPSTRAVA_PLUGIN_URL . 'images/example-activity.png',
|
||||
)
|
||||
);
|
||||
|
||||
foreach ( $blocks as $block_class ) {
|
||||
$block = new $block_class();
|
||||
$block->register_block();
|
||||
|
||||
Reference in New Issue
Block a user