Skip to:
Content

BuddyPress.org

Opened 15 years ago

Closed 15 years ago

#906 closed defect (bug) (fixed)

Usernames with Apostrophe Causes Slashes in Members Widget

Reported by: korhanekinci's profile korhanekinci Owned by:
Milestone: 1.1 Priority: major
Severity: Version:
Component: Keywords:
Cc:

Description

I had a problem with member widget, username of someone contains apostrophe. I solved the problem by hacking bp-core-templatetags.php file and this line. I added stripslashes to the function.

function bp_get_the_site_member_name() {
global $site_members_template;

return stripslashes( apply_filters( 'bp_get_the_site_member_name', $site_members_template->member->fullname ));
}
add_filter( 'bp_get_the_site_member_name', 'wp_filter_kses' );

Change History (3)

#1 @djpaul
15 years ago

  • Milestone set to 1.0.4

#2 @apeatling
15 years ago

  • Milestone changed from 1.0.4 to 1.1

Milestone 1.0.4 deleted

#3 @apeatling
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [1731]) Fixes #906

Note: See TracTickets for help on using tickets.