Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/02/2024 05:55:08 PM (12 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/tests/phpunit/testcases/core/functions/bpVerifyNonceRequest.php

    r13314 r13898  
    7575     */
    7676    public function add_port_and_subdirectory_to_home_url( $url, $path, $scheme ) {
    77         $home = parse_url( get_option( 'home' ) );
     77        $home = wp_parse_url( get_option( 'home' ) );
    7878        $home_path = isset( $home['path'] ) ? $home['path'] : '';
    7979        return $scheme . '://' . $home['host'] . ':80' . $home_path . '/wordpress' . $path;
Note: See TracChangeset for help on using the changeset viewer.