Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Aug 13, 2023
1 parent df97787 commit 95d0310
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/wp-to-twitter-oauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ function wtt_connect_oauth( $auth = false ) {
$submit = '<input type="checkbox" name="oauth_settings" value="wtt_twitter_disconnect" id="disconnect" /> <label for="disconnect">' . __( 'Disconnect Your Account from X.com', 'wp-to-twitter' ) . '</label>';
}
}

$bearer_token = ( $bt ) ? '<li><strong class="auth_label">' . __( 'Bearer Token ', 'wp-to-twitter' ) . '</strong> <code class="auth_code">' . esc_attr( wpt_mask_attr( $bt ) ) . '</code></li>' : '';

print( '
Expand Down
2 changes: 1 addition & 1 deletion src/wp-to-twitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2071,7 +2071,7 @@ function wpt_needs_bearer_token() {
if ( ! $bt ) {
if ( $auth && get_option( 'jd_individual_twitter_users' ) ) {
echo "<div class='notice error important'><p>" . __( '<strong>XPoster (formerly WP to Twitter)</strong> needs a Bearer Token added to your profile settings to support the X.com API.', 'wp-to-twitter' ) . '</p></div>';
} else if ( current_user_can( 'manage_options' ) ) {
} elseif ( current_user_can( 'manage_options' ) ) {
// Translators: URL to connection settings.
echo "<div class='notice error important'><p>" . sprintf( __( '<strong>XPoster (formerly WP to Twitter)</strong> needs a Bearer Token added to the <a href="%s">connection settings</a> to support the X.com API.', 'wp-to-twitter' ), admin_url( 'admin.php?page=wp-tweets-pro&tab=connection' ) ) . '</p></div>';
}
Expand Down

0 comments on commit 95d0310

Please sign in to comment.