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:
Justin Foell
2019-12-22 11:29:56 -06:00
parent 166ee78723
commit 632898fc86
4 changed files with 15 additions and 5 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ abstract class WPStrava_Auth {
$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();
}
+1 -1
View File
@@ -646,7 +646,7 @@ class WPStrava_Settings {
* @since 2.0.0
*/
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'] ) );
}
/**