Better club ID support

This commit is contained in:
Justin Foell
2018-01-26 16:11:34 -06:00
parent f5b5d44f27
commit d37286fce7
5 changed files with 37 additions and 48 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ class WPStava_LatestActivities {
$response .= sprintf( __( 'On %1$s %2$s', 'wp-strava' ), date_i18n( get_option( 'date_format' ), $unixtime ), date_i18n( get_option( 'time_format' ), $unixtime ) );
if ( is_numeric( $args['strava_club_id'] ) ) {
$response .= " <a href='" . WPStrava_Activity::ATHLETES_URL . $activity->athlete_id . "'>" . $activity->athlete_name . '</a>';
$response .= " <a href='" . WPStrava_Activity::ATHLETES_URL . $activity->athlete->id . "'>" . $activity->athlete->firstname . ' ' . $activity->athlete->lastname . '</a>';
}
// Translators: "went 10 miles"