Ticket #2557: 2557.diff
File 2557.diff, 928 bytes (added by , 11 years ago) |
---|
-
src/includes/topics/template.php
1660 1660 // Parse arguments against default values 1661 1661 $r = bbp_parse_args( $args, array( 1662 1662 'topic_id' => 0, 1663 'class' => 'bbp-author-role', 1664 'before' => '', 1665 'after' => '' 1663 'before' => '<div class="bbp-author-role">', 1664 'after' => '</div>' 1666 1665 ), 'get_topic_author_role' ); 1667 1666 1668 1667 $topic_id = bbp_get_topic_id( $r['topic_id'] ); 1669 1668 $role = bbp_get_user_display_role( bbp_get_topic_author_id( $topic_id ) ); 1670 $author_role = sprintf( '%1$s<div class="%2$s">%3$s</div>%4$s', $r['before'], $r['class'], $role, $r['after'] );1669 $author_role = $r['before'] . $role . $r['after']; 1671 1670 1672 1671 return apply_filters( 'bbp_get_topic_author_role', $author_role, $r ); 1673 1672 }