Skip to:
Content

BuddyPress.org

Ticket #5630: 5630.2.patch

File 5630.2.patch, 1.4 KB (added by johnjamesjacoby, 5 years ago)
  • bp-xprofile-classes.php

     
    27032703                $link      = strip_tags( $field_value );
    27042704                $no_scheme = preg_replace( '#^https?://#', '', rtrim( $link, '/' ) );
    27052705                $url_text  = str_replace( $link, $no_scheme, $field_value );
    2706                 $retval    = '<a href="' . esc_url( $field_value ) . '" rel="nofollow">' . esc_html( $url_text ) . '</a>';
    2707                 return $field_value;
     2706                return '<a href="' . esc_url( $field_value ) . '" rel="nofollow">' . esc_html( $url_text ) . '</a>';
    27082707        }
    27092708}
    27102709
  • bp-xprofile-filters.php

     
    5050add_filter( 'bp_get_the_profile_field_value',           'xprofile_filter_format_field_value', 1, 2 );
    5151add_filter( 'bp_get_the_site_member_profile_data',      'xprofile_filter_format_field_value', 1, 2 );
    5252add_filter( 'xprofile_get_field_data',                  'xprofile_filter_format_field_value_by_field_id', 5, 2 );
    53 add_filter( 'bp_get_the_profile_field_value',           'xprofile_filter_format_field_value_by_type', 5, 2 );
     53add_filter( 'bp_get_the_profile_field_value',           'xprofile_filter_format_field_value_by_type', 8, 2 );
    5454add_filter( 'bp_get_the_profile_field_value',           'xprofile_filter_link_profile_data',  9, 2 );
    5555
    5656add_filter( 'xprofile_data_value_before_save',          'xprofile_sanitize_data_value_before_save', 1, 2 );