Skip to content

Commit

Permalink
Disconnect checkboxes need unique IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Feb 22, 2025
1 parent f1e0fcd commit a933f5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/services/bluesky/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function wtt_connect_bluesky( $auth = false ) {
echo '</form>';
} else {
?>
<input type="checkbox" name="bluesky_settings" value="wtt_bluesky_disconnect" id="disconnect" /> <label for="disconnect"><?php esc_html_e( 'Disconnect Your Account from Bluesky', 'wp-to-twitter' ); ?></label>
<input type="checkbox" name="bluesky_settings" value="wtt_bluesky_disconnect" id="disconnect_bluesky" /> <label for="disconnect_bluesky"><?php esc_html_e( 'Disconnect Your Account from Bluesky', 'wp-to-twitter' ); ?></label>
<?php
}
?>
Expand Down
2 changes: 1 addition & 1 deletion src/services/mastodon/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function wtt_connect_mastodon( $auth = false ) {
echo '</form>';
} else {
?>
<input type="checkbox" name="mastodon_settings" value="wtt_mastodon_disconnect" id="disconnect" /> <label for="disconnect"><?php esc_html_e( 'Disconnect Your Account from Mastodon', 'wp-to-twitter' ); ?></label>
<input type="checkbox" name="mastodon_settings" value="wtt_mastodon_disconnect" id="disconnect_mastodon" /> <label for="disconnect_mastodon"><?php esc_html_e( 'Disconnect Your Account from Mastodon', 'wp-to-twitter' ); ?></label>
<?php
}
?>
Expand Down
2 changes: 1 addition & 1 deletion src/services/x/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ function wtt_connect_oauth( $auth = false ) {
wp_nonce_field( 'wp-to-twitter-nonce', '_wpnonce', true, true );
} else {
?>
<input type="checkbox" name="oauth_settings" value="wtt_twitter_disconnect" id="disconnect" /> <label for="disconnect"><?php esc_html_e( 'Disconnect Your Account from X', 'wp-to-twitter' ); ?></label>
<input type="checkbox" name="oauth_settings" value="wtt_twitter_disconnect" id="disconnect_x" /> <label for="disconnect_x"><?php esc_html_e( 'Disconnect Your Account from X', 'wp-to-twitter' ); ?></label>
<?php
}
echo ( ! $auth ) ? '</form>' : '';
Expand Down

0 comments on commit a933f5c

Please sign in to comment.