Make WordPress Core

Changeset 24503


Ignore:
Timestamp:
06/23/2013 06:02:19 AM (11 years ago)
Author:
nacin
Message:

Broader fix for [24497] for setup-config.php in trunk. props SergeyBiryukov, markoheijnen. fixes #24627.

File:
1 edited

Legend:

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

    r24497 r24503  
    120120            return $pre;
    121121
    122         if ( $r['reject_unsafe_urls'] )
    123             $url = wp_http_validate_url( $url );
    124         if ( function_exists( 'wp_kses_bad_protocol' ) )
     122        if ( function_exists( 'wp_kses_bad_protocol' ) ) {
     123            if ( $r['reject_unsafe_urls'] )
     124                $url = wp_http_validate_url( $url );
    125125            $url = wp_kses_bad_protocol( $url, array( 'http', 'https', 'ssl' ) );
     126        }
    126127
    127128        $arrURL = @parse_url( $url );
Note: See TracChangeset for help on using the changeset viewer.