From e027a39bee35c3461c9e926267be8ab28b1bc767 Mon Sep 17 00:00:00 2001
From: Justin Foell <630830+jrfoell@users.noreply.github.com>
Date: Tue, 3 Nov 2020 13:37:12 -0600
Subject: [PATCH] Get rid of static calls
---
src/WPStrava/ActivityShortcode.php | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
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 );