Skip to content

Commit

Permalink
Make disconnection text more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Aug 11, 2023
1 parent 6ad573c commit aca20e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/wp-to-twitter-oauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,10 +399,12 @@ function wtt_connect_oauth( $auth = false ) {
} else {
$bt_form = '';
if ( ! $auth ) {
$submit = '<input type="submit" name="submit" class="button-primary" value="' . __( 'Disconnect WordPress from X.com', 'wp-to-twitter' ) . '" />
$site = get_bloginfo( 'name' );
// Translators: Name of the current site.
$submit = '<input type="submit" name="submit" class="button-primary" value="' . sprintf( __( 'Disconnect %s from X.com', 'wp-to-twitter' ), $site ) . '" />
<input type="hidden" name="oauth_settings" value="wtt_twitter_disconnect" class="hidden" />';
} else {
$submit = '<input type="checkbox" name="oauth_settings" value="wtt_twitter_disconnect" id="disconnect" /> <label for="disconnect">' . __( 'Disconnect WordPress from X.com', 'wp-to-twitter' ) . '</label>';
$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>';
}
}

Expand Down

0 comments on commit aca20e6

Please sign in to comment.