WordPress.org

Make WordPress Core

Ticket #13897: http-request-typo.13897.diff

File http-request-typo.13897.diff, 480 bytes (added by filosofo, 8 years ago)
  • wp-includes/class-http.php

     
    240240
    241241                $arrURL = parse_url($url);
    242242
    243                 if ( empty( $url ) || empty($url['scheme'] ) )
     243                if ( empty( $url ) || empty( $arrURL['scheme'] ) )
    244244                        return new WP_Error('http_request_failed', __('A valid URL was not provided.'));
    245245
    246246                if ( $this->block_request( $url ) )