mirror of
https://github.com/10h30/wp-strava.git
synced 2026-06-05 15:10:01 +09:00
Updates for PHPCS
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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' ); ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user