Skip to content

Commit

Permalink
Don't render empty li if no error recorded.
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Jan 30, 2025
1 parent d928d68 commit b691fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wpt-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function wpt_check_functions() {
} else {
$error = wpt_get_log( 'wpt_status_message', 'test' );
$message .= '<li class="error">' . __( 'XPoster failed to submit status updates.', 'wp-to-twitter' ) . '</li>';
$message .= "<li class='error'>$error</li>";
$message .= ( '' !== $error ) ? "<li class='error'>$error</li>" : '';
}
} else {
$message .= __( 'You have not connected WordPress to a supported service.', 'wp-to-twitter' ) . ' ';
Expand Down

0 comments on commit b691fd2

Please sign in to comment.