Formatting

This commit is contained in:
Justin Foell
2014-09-12 10:37:34 -05:00
parent 1be075356a
commit 140c04fd24
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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