diff --git a/src/WPStrava/ActivityShortcode.php b/src/WPStrava/ActivityShortcode.php index 571d894..8350294 100644 --- a/src/WPStrava/ActivityShortcode.php +++ b/src/WPStrava/ActivityShortcode.php @@ -31,8 +31,6 @@ class WPStrava_ActivityShortcode { add_shortcode( 'ride', array( $this, 'handler' ) ); // @deprecated 1.1 add_shortcode( 'activity', array( $this, 'handler' ) ); add_action( 'wp_footer', array( $this, 'print_scripts' ) ); - WPStrava_ActivityRenderer::register_shortcode_style_translations( array( 'ride', 'activity' ) ); - WPStrava_ActivityRenderer::load_style_translations(); } /** @@ -51,7 +49,7 @@ class WPStrava_ActivityShortcode { return __( 'The athlete_token parameter is deprecated as of WP-Strava version 2 and should be replaced with client_id.', 'wp-strava' ); } - $this->add_script = WPStrava_ActivityRenderer::has_shortcode( array( 'ride', 'activity' ) ); + $this->add_script = true; $renderer = new WPStrava_ActivityRenderer(); return $renderer->get_html( $atts );