WordPress.org

Make WordPress Core

Changeset 24497


Ignore:
Timestamp:
06/21/2013 07:05:15 PM (8 years ago)
Author:
nacin
Message:

Only call wp_kses_bad_protocol() in WP_HTTP if it exists. It does not in setup-config.php.

File:
1 edited

Legend:

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

    r24482 r24497  
    122122        if ( $r['reject_unsafe_urls'] )
    123123            $url = wp_http_validate_url( $url );
    124         $url = wp_kses_bad_protocol( $url, array( 'http', 'https', 'ssl' ) );
     124        if ( function_exists( 'wp_kses_bad_protocol' ) )
     125            $url = wp_kses_bad_protocol( $url, array( 'http', 'https', 'ssl' ) );
    125126
    126127        $arrURL = @parse_url( $url );
Note: See TracChangeset for help on using the changeset viewer.