mirror of
https://github.com/10h30/wp-strava.git
synced 2026-07-17 21:53:54 +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 );
|
||||
|
||||
if ( $settings->ids_empty( $input['strava_id'] ) ) {
|
||||
if ( is_array( $input['strava_id'] ) && $settings->ids_empty( $input['strava_id'] ) ) {
|
||||
return array();
|
||||
}
|
||||
|
||||
|
||||
@@ -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'] ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user