Updates for PHPCS

This commit is contained in:
Justin Foell
2019-11-01 14:32:02 -05:00
parent bfd142e051
commit 065377620e
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -104,9 +104,11 @@ class WPStrava_AuthRefresh extends WPStrava_Auth {
$strava_info = $this->token_request( $data );
if ( isset( $strava_info->access_token ) ) {
// Translators: Token refresh success message.
$this->feedback .= __( 'ID %s successfully re-authenticated.', 'wp-strava' );
if ( $strava_info->access_token != $info->access_token ) {
// Translators: New token created message.
$this->feedback .= __( 'ID %s access extended.', 'wp-strava' );
$settings = WPStrava::get_instance()->settings;
+1 -1
View File
@@ -2,7 +2,7 @@
<div id="icon-options-general" class="icon32"><br/></div>
<h2><?php esc_html_e( 'Strava Settings', 'wp-strava' ); ?></h2>
<form method="post" action="<?php echo admin_url( 'options.php' ); ?>">
<form method="post" action="<?php echo esc_attr( admin_url( 'options.php' ) ); ?>">
<?php settings_fields( $this->option_page ); ?>
<?php do_settings_sections( 'wp-strava' ); ?>