Changeset 4814 for trunk/includes/topics/template-tags.php
- Timestamp:
- 03/15/2013 06:44:45 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/includes/topics/template-tags.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/topics/template-tags.php
r4791 r4814 1384 1384 if ( !empty( $topic_id ) ) { 1385 1385 1386 // Get some useful topic information 1387 $author_url = bbp_get_topic_author_url( $topic_id ); 1388 $anonymous = bbp_is_topic_anonymous( $topic_id ); 1389 1386 1390 // Tweak link title if empty 1387 1391 if ( empty( $r['link_title'] ) ) { 1388 $link_title = sprintf( !bbp_is_topic_anonymous( $topic_id) ? __( 'View %s\'s profile', 'bbpress' ) : __( 'Visit %s\'s website', 'bbpress' ), bbp_get_topic_author_display_name( $topic_id ) );1392 $link_title = sprintf( empty( $anonymous ) ? __( 'View %s\'s profile', 'bbpress' ) : __( 'Visit %s\'s website', 'bbpress' ), bbp_get_topic_author_display_name( $topic_id ) ); 1389 1393 1390 1394 // Use what was passed if not … … 1393 1397 } 1394 1398 1399 // Setup title and author_links array 1395 1400 $link_title = !empty( $link_title ) ? ' title="' . $link_title . '"' : ''; 1396 $author_url = bbp_get_topic_author_url( $topic_id );1397 $anonymous = bbp_is_topic_anonymous( $topic_id );1398 1401 $author_links = array(); 1399 1402
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)