Changeset 5180
- Timestamp:
- 11/24/2013 09:46:41 PM (7 years ago)
- Location:
- trunk/includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/replies/template.php
r5177 r5180 1232 1232 $link_class = ' class="bbp-author-' . esc_attr( $r['type'] ) . '"'; 1233 1233 1234 // Add links if not anonymous 1234 // Add links if not anonymous and existing user 1235 1235 if ( empty( $anonymous ) && bbp_user_has_profile( bbp_get_reply_author_id( $reply_id ) ) ) { 1236 1236 … … 1280 1280 * @uses bbp_is_reply_anonymous() To check if the reply is by an anonymous 1281 1281 * user 1282 * @uses bbp_user_has_profile() To check if the user has a profile 1282 1283 * @uses bbp_get_reply_author_id() To get the reply author id 1283 1284 * @uses bbp_get_user_profile_url() To get the user profile url … … 1290 1291 $reply_id = bbp_get_reply_id( $reply_id ); 1291 1292 1292 // Check for anonymous user 1293 if ( !bbp_is_reply_anonymous( $reply_id ) ) {1293 // Check for anonymous user or non-existant user 1294 if ( !bbp_is_reply_anonymous( $reply_id ) && bbp_user_has_profile( bbp_get_reply_author_id( $reply_id ) ) ) { 1294 1295 $author_url = bbp_get_user_profile_url( bbp_get_reply_author_id( $reply_id ) ); 1295 1296 } else { -
trunk/includes/topics/template.php
r5157 r5180 1551 1551 * @uses bbp_is_topic_anonymous() To check if the topic is by an anonymous 1552 1552 * user or not 1553 * @uses bbp_user_has_profile() To check if the user has a profile 1553 1554 * @uses bbp_get_topic_author_id() To get topic author id 1554 1555 * @uses bbp_get_user_profile_url() To get profile url … … 1561 1562 $topic_id = bbp_get_topic_id( $topic_id ); 1562 1563 1563 // Check for anonymous user 1564 if ( !bbp_is_topic_anonymous( $topic_id ) ) {1564 // Check for anonymous user or non-existant user 1565 if ( !bbp_is_topic_anonymous( $topic_id ) && bbp_user_has_profile( bbp_get_topic_author_id( $topic_id ) ) ) { 1565 1566 $author_url = bbp_get_user_profile_url( bbp_get_topic_author_id( $topic_id ) ); 1566 1567 } else { -
trunk/includes/users/template.php
r5156 r5180 1654 1654 // Assemble some link bits 1655 1655 $link_title = !empty( $r['link_title'] ) ? ' title="' . $r['link_title'] . '"' : ''; 1656 $author_url = bbp_get_user_profile_url( $user_id );1657 1656 $anonymous = bbp_is_reply_anonymous( $r['post_id'] ); 1658 1657 … … 1669 1668 // Add links if not anonymous 1670 1669 if ( empty( $anonymous ) && bbp_user_has_profile( $user_id ) ) { 1670 $author_url = bbp_get_user_profile_url( $user_id ); 1671 1671 foreach ( $author_links as $link_text ) { 1672 1672 $author_link[] = sprintf( '<a href="%1$s"%2$s>%3$s</a>', $author_url, $link_title, $link_text );
Note: See TracChangeset
for help on using the changeset viewer.