Ticket #1227: 1227-rel.diff
| File 1227-rel.diff, 2.1 KB (added by matveb, 2 years ago) |
|---|
-
bb-includes/functions.bb-template.php
1740 1740 } 1741 1741 1742 1742 function post_author_link( $post_id = 0 ) { 1743 if ( $link = get_user_link( get_post_author_id( $post_id) ) ) {1743 if ( $link = ( bb_get_option( 'name_link_profile' ) ? get_user_profile_link( get_post_author_id( $post_id ) ) : get_user_link( get_post_author_id( $post_id ) ) ) ) { 1744 1744 echo '<a href="' . esc_attr( $link ) . '">' . get_post_author( $post_id ) . '</a>'; 1745 1745 } elseif ( $link = bb_get_post_meta( 'pingback_uri' )) { 1746 1746 echo '<a href="' . esc_attr( $link ) . '">' . get_post_author( $post_id ) . '</a>'; … … 1762 1762 return false; 1763 1763 1764 1764 $author_id = get_post_author_id( $post_id ); 1765 if ( $link = get_user_link( $author_id) ) {1765 if ( $link = ( bb_get_option( 'name_link_profile' ) ? get_user_profile_link( $author_id ) : get_user_link( $author_id ) ) ) { 1766 1766 echo '<a href="' . esc_attr( $link ) . '">' . bb_get_avatar( $author_id, $size, $default ) . '</a>'; 1767 1767 } else { 1768 1768 echo bb_get_avatar( $author_id, $size, $default ); -
bb-includes/functions.bb-meta.php
475 475 'plugin_cookie_paths', 476 476 'wp_roles_map', 477 477 'gmt_offset', 478 'timezone_string' 478 'timezone_string', 479 'name_link_profile' 479 480 ); 480 481 481 482 // Check that these aren't already in the cache -
bb-admin/options-reading.php
33 33 'title' => __( 'Items per page' ), 34 34 'class' => 'short', 35 35 'note' => __( 'Number of topics, posts or tags to show per page.' ), 36 ), 37 'name_link_profile' => array( 38 'title' => __( 'Link name to' ), 39 'type' => 'radio', 40 'options' => array( 41 0 => __( 'Website' ), 42 1 => __( 'Profile' ) 43 ) 36 44 ) 37 45 ); 38 46