Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/02/2024 05:55:08 PM (2 years ago)
Author:
espellcaste
Message:

Use wp_parse_url instead of parse_url to parse URLs.

Props imath
Closes ​https://github.com/buddypress/buddypress/pull/307
See #7228

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-telephone.php

    r13806 r13898  
    140140        public static function display_filter( $field_value, $field_id = '' ) {
    141141                $url   = wp_strip_all_tags( $field_value );
    142                 $parts = parse_url( $url );
     142                $parts = wp_parse_url( $url );
    143143
    144144                // Add the tel:// protocol to the field value.
Note: See TracChangeset for help on using the changeset viewer.