Remove JS image loader for URL

This commit is contained in:
Justin Foell
2020-02-28 13:40:31 -06:00
parent 5f9849214a
commit fbfb4953e4
5 changed files with 21 additions and 23 deletions
+8
View File
@@ -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();