Skip to content

Commit 2fe266f

Browse files
committed
Don't link to the author's archive for now.
1 parent 43f733a commit 2fe266f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/class-display.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,13 @@ private static function get_user_list( $users, $type ) {
284284
$output .= '</a>';
285285
}
286286
$output .= '<h5 class="avatar-name">';
287-
288-
$output .= '<a href="' . esc_url( get_author_posts_url( $user->ID) ) . '">';;
287+
if ( ! empty( $user->user_url ) ) {
288+
$output .= '<a target="_blank" rel="nofollow" href="' . esc_url( $user->user_url ) . '">';
289+
}
289290
$output .= $user->display_name;
290-
$output .= '</a>';
291+
if ( ! empty( $user->user_url ) ) {
292+
$output .= '</a>';
293+
}
291294
$output .= '</h5>';
292295
$output .= '</li>';
293296
}

0 commit comments

Comments
 (0)