Changeset 6224
- Timestamp:
- 08/05/2012 09:21:03 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-filters.php
r6205 r6224 24 24 add_filter( 'bp_get_the_profile_field_value', 'convert_chars' ); 25 25 add_filter( 'bp_get_the_profile_field_value', 'wpautop' ); 26 add_filter( 'bp_get_the_profile_field_value', 'make_clickable', 8 );27 26 add_filter( 'bp_get_the_profile_field_value', 'force_balance_tags' ); 27 add_filter( 'bp_get_the_profile_field_value', 'make_clickable' ); 28 add_filter( 'bp_get_the_profile_field_value', 'esc_html', 8 ); 28 29 29 30 add_filter( 'bp_get_the_profile_field_edit_value', 'force_balance_tags' ); … … 175 176 // More than 5 spaces 176 177 if ( count( explode( ' ', $value ) ) > 5 ) { 177 $new_values[] = esc_html( $value );178 $new_values[] = $value; 178 179 179 180 // Less than 5 spaces 180 181 } else { 181 182 $search_url = add_query_arg( array( 's' => urlencode( $value ) ), bp_get_members_directory_permalink() ); 182 $new_values[] = '<a href="' . $search_url . '" rel="nofollow">' . esc_html( $value ). '</a>';183 $new_values[] = '<a href="' . $search_url . '" rel="nofollow">' . $value . '</a>'; 183 184 } 184 185 }
Note: See TracChangeset
for help on using the changeset viewer.