Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/02/2024 05:55:08 PM (5 months 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-core/bp-core-functions.php

    r13893 r13898  
    23982398    // Parse home_url() into pieces to remove query-strings, strange characters,
    23992399    // and other funny things that plugins might to do to it.
    2400     $parsed_home = parse_url( home_url( '/', ( is_ssl() ? 'https' : 'http' ) ) );
     2400    $parsed_home = wp_parse_url( home_url( '/', ( is_ssl() ? 'https' : 'http' ) ) );
    24012401
    24022402    // Maybe include the port, if it's included in home_url().
Note: See TracChangeset for help on using the changeset viewer.