WordPress.org

Make WordPress Core

Changeset 24498


Ignore:
Timestamp:
06/21/2013 07:11:57 PM (6 years ago)
Author:
nacin
Message:

Only call wp_kses_bad_protocol() in WP_HTTP if it exists. It does not in setup-config.php. Merges [24497] to the 3.5 branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.5/wp-includes/class-http.php

    r24483 r24498  
    121121        if ( $r['reject_unsafe_urls'] )
    122122            $url = wp_http_validate_url( $url );
    123         $url = wp_kses_bad_protocol( $url, array( 'http', 'https', 'ssl' ) );
     123        if ( function_exists( 'wp_kses_bad_protocol' ) )
     124            $url = wp_kses_bad_protocol( $url, array( 'http', 'https', 'ssl' ) );
    124125
    125126        $arrURL = @parse_url( $url );
Note: See TracChangeset for help on using the changeset viewer.