mirror of
https://github.com/10h30/wp-strava.git
synced 2026-07-14 04:06:48 +09:00
Formatting
This commit is contained in:
@@ -100,7 +100,7 @@ class WPStrava_RideShortcode {
|
||||
";
|
||||
}
|
||||
} else {
|
||||
return _e('Please first get your strava token using the settings wp strava page.', 'wp-strava');
|
||||
return __('Please first get your strava token using the settings wp strava page.', 'wp-strava');
|
||||
}
|
||||
} // handler
|
||||
|
||||
|
||||
@@ -29,8 +29,8 @@ class WPStrava_Settings {
|
||||
public function option_home() {
|
||||
if ( isset( $_POST['option_page'] ) && $_POST['option_page'] == $this->option_page ) {
|
||||
//redirect only if all the right options are in place
|
||||
$errors = get_settings_errors();
|
||||
if ( ! empty( $errors ) )
|
||||
global $wp_settings_errors;
|
||||
if ( ! empty( $wp_settings_errors ) )
|
||||
return;
|
||||
|
||||
//clearing to start-over
|
||||
|
||||
Reference in New Issue
Block a user