diff --git a/lib/Strava.class.php b/lib/Strava.class.php index 1ef33af..45d4844 100644 --- a/lib/Strava.class.php +++ b/lib/Strava.class.php @@ -2,6 +2,7 @@ require_once WPSTRAVA_PLUGIN_DIR . 'lib/Settings.class.php'; require_once WPSTRAVA_PLUGIN_DIR . 'lib/SOM.class.php'; +require_once WPSTRAVA_PLUGIN_DIR . 'lib/Activity.class.php'; require_once WPSTRAVA_PLUGIN_DIR . 'lib/LatestActivitiesShortcode.class.php'; require_once WPSTRAVA_PLUGIN_DIR . 'lib/ActivityShortcode.class.php'; require_once WPSTRAVA_PLUGIN_DIR . 'lib/RouteShortcode.class.php'; @@ -68,7 +69,6 @@ public function get_api( $token = null ) { public function get_activity() { if ( ! $this->activity ) { - require_once WPSTRAVA_PLUGIN_DIR . 'lib/Activity.class.php'; $this->activity = new WPStrava_Activity(); } diff --git a/readme.txt b/readme.txt index 006b28f..8ce32c8 100755 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Contributors: cmanon, jrfoell, lancewillett, dlintott Tags: strava, activity, bicycle, cycling, biking, running, run, swimming, swim, gps, shortcode, widget, plugin Requires at least: 4.6 Tested up to: 4.9 -Stable tag: 1.4.2 +Stable tag: 1.4.3 Requires PHP: 5.2 License: GPLv2 or later @@ -52,11 +52,11 @@ Strava Latest Map - shows map of latest activity with option to limit latest map = Why am I getting "ERROR 401 Unauthorized"? = -When you have multiple athletes saved, the first is considered to be the default athlete. If you use a shortcode to display activity from anyone other than the default athlete, you must add the athlete token to the shortcode, such as +When you have multiple athletes saved, the first is considered to be the default athlete. If you use a shortcode to display activity from anyone other than the default athlete, you must add the athlete token (found on the wp-strava settings page) to the shortcode, such as athlete_token=c764a2b199cff281e39f24671760c1b9c9fe005e = Why is my Google Map not showing up? = -If your key works with other Google Maps plugins but not WP Strava, you may need to enable the "Static Maps" functionality on your google account. This is especially true for people using G Suite accounts (not just a @gmail.com address). While logged into your G Suite email, visit https://console.developers.google.com/apis/library/static-maps-backend.googleapis.com/?q=static and make sure the "Static Maps API" is enabled. For more details see https://wordpress.org/support/topic/no-data-errors/ +If your API key works with other Google Maps plugins but not WP Strava, you may need to enable the "Static Maps" functionality on your google account. This is especially true for people using G Suite accounts (not just a @gmail.com address). While logged into your G Suite email, visit https://console.developers.google.com/apis/library/static-maps-backend.googleapis.com/?q=static and make sure the "Static Maps API" is enabled. For more details see https://wordpress.org/support/topic/no-data-errors/ == Screenshots == @@ -74,6 +74,10 @@ If your key works with other Google Maps plugins but not WP Strava, you may need == Changelog == += 1.4.3 = + +Fix WPStrava_Activity class not found error. + = 1.4.2 = Better Club ID support. diff --git a/wp-strava.php b/wp-strava.php index 4130fd4..02573da 100755 --- a/wp-strava.php +++ b/wp-strava.php @@ -3,7 +3,7 @@ * Plugin Name: WP Strava * Plugin URI: https://wordpress.org/plugins/wp-strava/ * Description: Plugin to show your strava.com information in your WordPress blog. Some Icons are Copyright © Yusuke Kamiyamane. All rights reserved. Licensed under a Creative Commons Attribution 3.0 license. - * Version: 1.4.2 + * Version: 1.4.3 * Author: Carlos Santa Cruz, Justin Foell, Lance Willet, Daniel Lintott * License: GPL2 * Text Domain: wp-strava