diff --git includes/replies/template-tags.php includes/replies/template-tags.php
index ed70d60..2bb791c 100644
|
|
function bbp_reply_author_link( $args = '' ) { |
1098 | 1098 | // Link class |
1099 | 1099 | $link_class = ' class="bbp-author-' . $r['type'] . '"'; |
1100 | 1100 | |
1101 | | // Add links if not anonymous |
| 1101 | // Add links if not anonymous and existing user |
1102 | 1102 | if ( empty( $anonymous ) && bbp_user_has_profile( bbp_get_reply_author_id( $reply_id ) ) ) { |
1103 | 1103 | |
1104 | 1104 | // Assemble the links |
… |
… |
function bbp_reply_author_url( $reply_id = 0 ) { |
1156 | 1156 | function bbp_get_reply_author_url( $reply_id = 0 ) { |
1157 | 1157 | $reply_id = bbp_get_reply_id( $reply_id ); |
1158 | 1158 | |
1159 | | // Check for anonymous user |
1160 | | if ( !bbp_is_reply_anonymous( $reply_id ) ) { |
| 1159 | // Check for anonymous or non-existant user |
| 1160 | if ( !bbp_is_reply_anonymous( $reply_id ) && bbp_user_has_profile( bbp_get_reply_author_id( $reply_id ) ) ) { |
1161 | 1161 | $author_url = bbp_get_user_profile_url( bbp_get_reply_author_id( $reply_id ) ); |
1162 | 1162 | } else { |
1163 | 1163 | $author_url = get_post_meta( $reply_id, '_bbp_anonymous_website', true ); |
diff --git includes/topics/template-tags.php includes/topics/template-tags.php
index 2a51a5c..2b90d38 100644
|
|
function bbp_topic_author_url( $topic_id = 0 ) { |
1483 | 1483 | function bbp_get_topic_author_url( $topic_id = 0 ) { |
1484 | 1484 | $topic_id = bbp_get_topic_id( $topic_id ); |
1485 | 1485 | |
1486 | | // Check for anonymous user |
1487 | | if ( !bbp_is_topic_anonymous( $topic_id ) ) { |
| 1486 | // Check for anonymous or non-existant user |
| 1487 | if ( !bbp_is_topic_anonymous( $topic_id ) && bbp_user_has_profile( bbp_get_topic_author_id( $topic_id ) ) ) { |
1488 | 1488 | $author_url = bbp_get_user_profile_url( bbp_get_topic_author_id( $topic_id ) ); |
1489 | 1489 | } else { |
1490 | 1490 | $author_url = get_post_meta( $topic_id, '_bbp_anonymous_website', true ); |
diff --git includes/users/template-tags.php includes/users/template-tags.php
index 014db80..25c2fac 100644
|
|
function bbp_author_link( $args = '' ) { |
1421 | 1421 | |
1422 | 1422 | // Assemble some link bits |
1423 | 1423 | $link_title = !empty( $r['link_title'] ) ? ' title="' . $r['link_title'] . '"' : ''; |
1424 | | $author_url = bbp_get_user_profile_url( $user_id ); |
1425 | 1424 | $anonymous = bbp_is_reply_anonymous( $r['post_id'] ); |
1426 | 1425 | |
1427 | 1426 | // Get avatar |
… |
… |
function bbp_author_link( $args = '' ) { |
1436 | 1435 | |
1437 | 1436 | // Add links if not anonymous |
1438 | 1437 | if ( empty( $anonymous ) && bbp_user_has_profile( $user_id ) ) { |
| 1438 | $author_url = bbp_get_user_profile_url( $user_id ); |
1439 | 1439 | foreach ( $author_links as $link_text ) { |
1440 | 1440 | $author_link[] = sprintf( '<a href="%1$s"%2$s>%3$s</a>', $author_url, $link_title, $link_text ); |
1441 | 1441 | } |