mirror of
https://github.com/10h30/wp-strava.git
synced 2026-07-11 18:56:18 +09:00
Fixed athlete addition in WP 5.3;
Bumped version Updated changelog Added FAQ about adding/removing at the same time
This commit is contained in:
@@ -52,7 +52,7 @@ abstract class WPStrava_Auth {
|
|||||||
|
|
||||||
$input = filter_input_array( INPUT_POST, $input_args );
|
$input = filter_input_array( INPUT_POST, $input_args );
|
||||||
|
|
||||||
if ( $settings->ids_empty( $input['strava_id'] ) ) {
|
if ( is_array( $input['strava_id'] ) && $settings->ids_empty( $input['strava_id'] ) ) {
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -646,7 +646,7 @@ class WPStrava_Settings {
|
|||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
public function is_settings_updated( $value ) {
|
public function is_settings_updated( $value ) {
|
||||||
return isset( $value[0]['type'] ) && 'updated' === $value[0]['type'];
|
return ( isset( $value[0]['type'] ) && ( 'updated' === $value[0]['type'] || 'success' === $value[0]['type'] ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
+12
-2
@@ -3,8 +3,8 @@
|
|||||||
Contributors: cmanon, jrfoell, lancewillett, dlintott, sebastianerb
|
Contributors: cmanon, jrfoell, lancewillett, dlintott, sebastianerb
|
||||||
Tags: strava, activity, bicycle, cycling, biking, running, run, swimming, swim, paddle, kayak, gps, shortcode, widget, plugin
|
Tags: strava, activity, bicycle, cycling, biking, running, run, swimming, swim, paddle, kayak, gps, shortcode, widget, plugin
|
||||||
Requires at least: 4.6
|
Requires at least: 4.6
|
||||||
Tested up to: 5.2
|
Tested up to: 5.3
|
||||||
Stable tag: 2.0.1
|
Stable tag: 2.1.0
|
||||||
Requires PHP: 5.2
|
Requires PHP: 5.2
|
||||||
License: GPLv2 or later
|
License: GPLv2 or later
|
||||||
|
|
||||||
@@ -81,6 +81,11 @@ If your API key works with other Google Maps plugins but not WP Strava, you may
|
|||||||
WP-Strava caches activity for one hour so your site doesn't hit the Strava API on every page load. If you recently uploaded activity and want to see it right away, go to the Settings -> Strava in the wp-admin dashboard, check the checkbox labeled "Clear cache (images & transient data)" and then click Save Changes.
|
WP-Strava caches activity for one hour so your site doesn't hit the Strava API on every page load. If you recently uploaded activity and want to see it right away, go to the Settings -> Strava in the wp-admin dashboard, check the checkbox labeled "Clear cache (images & transient data)" and then click Save Changes.
|
||||||
|
|
||||||
|
|
||||||
|
- Why can't I remove and add an athlete at the same time? -
|
||||||
|
|
||||||
|
On the WP-Strava settings page you cannot currently remove and add another athlete at the same time. This is a known limitation. WP-Strava will remove the athlete(s) that you cleared the ID/Nickname fields for, but the new athlete will no be added. Please complete the add/remove operations as separate save actions on the WP-Strava settings page.
|
||||||
|
|
||||||
|
|
||||||
== Screenshots ==
|
== Screenshots ==
|
||||||
|
|
||||||
1. WP Strava settings - this walks you through connecting the WP Strava plugin to your strava account. You can connect multiple accounts by authenticating each one here. Add your Google Maps key for map display here. You can also set the system of measurement (miles/kilometers) and clear any saved data.
|
1. WP Strava settings - this walks you through connecting the WP Strava plugin to your strava account. You can connect multiple accounts by authenticating each one here. Add your Google Maps key for map display here. You can also set the system of measurement (miles/kilometers) and clear any saved data.
|
||||||
@@ -98,6 +103,11 @@ WP-Strava caches activity for one hour so your site doesn't hit the Strava API o
|
|||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 2.1.0 =
|
||||||
|
|
||||||
|
Updated settings to work with WP 5.3.
|
||||||
|
|
||||||
|
|
||||||
= 2.0.1 =
|
= 2.0.1 =
|
||||||
|
|
||||||
Added [latest_map] shortcode https://wordpress.org/support/topic/show-latest-map-not-in-widget/
|
Added [latest_map] shortcode https://wordpress.org/support/topic/show-latest-map-not-in-widget/
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
* Plugin Name: WP Strava
|
* Plugin Name: WP Strava
|
||||||
* Plugin URI: https://wordpress.org/plugins/wp-strava/
|
* Plugin URI: https://wordpress.org/plugins/wp-strava/
|
||||||
* Description: Show your strava.com activity on your WordPress site. Some Icons are Copyright © Yusuke Kamiyamane. All rights reserved. Licensed under a Creative Commons Attribution 3.0 license.
|
* Description: Show your strava.com activity on your WordPress site. Some Icons are Copyright © Yusuke Kamiyamane. All rights reserved. Licensed under a Creative Commons Attribution 3.0 license.
|
||||||
* Version: 2.0.1
|
* Version: 2.1.0
|
||||||
* Author: Carlos Santa Cruz, Justin Foell, Lance Willett, Daniel Lintott, Sebastian Erb
|
* Author: Carlos Santa Cruz, Justin Foell, Lance Willett, Daniel Lintott, Sebastian Erb
|
||||||
* License: GPL2
|
* License: GPL2
|
||||||
* Text Domain: wp-strava
|
* Text Domain: wp-strava
|
||||||
|
|||||||
Reference in New Issue
Block a user