<a href="<?php echo esc_url( 'https://core.trac.wordpress.org/search?q=' . $user . '&noquickjump=1&changeset=on&max=20' ); ?>">
<?php
if ( 2 === $total ) {
esc_html_e( "View both tickets on Trac.", 'wp-contributions' );
} else {
printf( _n( "View the ticket on Trac.", "View all %d tickets on Trac.", $total, 'wp-contributions' ), $total );
}
?>
</a>