Changeset 6063 for branches/2.5/includes/users/template.php
- Timestamp:
- 07/13/2016 03:11:43 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/includes/users/template.php
r5370 r6063 1653 1653 1654 1654 // Assemble some link bits 1655 $link_title = !empty( $r['link_title'] ) ? ' title="' . $r['link_title'] . '"' : ''; 1656 $anonymous = bbp_is_reply_anonymous( $r['post_id'] ); 1655 $link_title = !empty( $r['link_title'] ) 1656 ? ' title="' . esc_attr( $r['link_title'] ) . '"' 1657 : ''; 1658 1659 $anonymous = bbp_is_reply_anonymous( $r['post_id'] ); 1657 1660 1658 1661 // Get avatar … … 1663 1666 // Get display name 1664 1667 if ( 'name' === $r['type'] || 'both' === $r['type'] ) { 1665 $author_links[] = get_the_author_meta( 'display_name', $user_id);1668 $author_links[] = esc_html( get_the_author_meta( 'display_name', $user_id ) ); 1666 1669 } 1667 1670 … … 1670 1673 $author_url = bbp_get_user_profile_url( $user_id ); 1671 1674 foreach ( $author_links as $link_text ) { 1672 $author_link[] = sprintf( '<a href="%1$s"%2$s>%3$s</a>', $author_url, $link_title, $link_text );1675 $author_link[] = sprintf( '<a href="%1$s"%2$s>%3$s</a>', esc_url( $author_url ), $link_title, $link_text ); 1673 1676 } 1674 1677 $author_link = implode( ' ', $author_link );
Note: See TracChangeset
for help on using the changeset viewer.