diff --git a/src/wp-to-twitter-oauth.php b/src/wp-to-twitter-oauth.php index 4dbcad9..634a37f 100644 --- a/src/wp-to-twitter-oauth.php +++ b/src/wp-to-twitter-oauth.php @@ -423,7 +423,7 @@ function wtt_connect_oauth( $auth = false ) { $submit = ' '; } } - + $bearer_token = ( $bt ) ? '
  • ' . __( 'Bearer Token ', 'wp-to-twitter' ) . ' ' . esc_attr( wpt_mask_attr( $bt ) ) . '
  • ' : ''; print( ' diff --git a/src/wp-to-twitter.php b/src/wp-to-twitter.php index 735a9d3..1d677c9 100644 --- a/src/wp-to-twitter.php +++ b/src/wp-to-twitter.php @@ -2071,7 +2071,7 @@ function wpt_needs_bearer_token() { if ( ! $bt ) { if ( $auth && get_option( 'jd_individual_twitter_users' ) ) { echo "

    " . __( 'XPoster (formerly WP to Twitter) needs a Bearer Token added to your profile settings to support the X.com API.', 'wp-to-twitter' ) . '

    '; - } else if ( current_user_can( 'manage_options' ) ) { + } elseif ( current_user_can( 'manage_options' ) ) { // Translators: URL to connection settings. echo "

    " . sprintf( __( 'XPoster (formerly WP to Twitter) needs a Bearer Token added to the connection settings to support the X.com API.', 'wp-to-twitter' ), admin_url( 'admin.php?page=wp-tweets-pro&tab=connection' ) ) . '

    '; }