~robotparade/wordpress/stable

« back to all changes in this revision

Viewing changes to wp-includes/class-http.php

  • Committer: Jeff Waugh
  • Date: 2010-06-11 21:00:40 UTC
  • Revision ID: jdub@bethesignal.org-20100611210040-9narx3kdlayc8x39
WordPress 3.0 RC3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1171
1171
 
1172
1172
                $arrURL = parse_url($url);
1173
1173
 
1174
 
                if ( 'http' != $arrURL['scheme'] || 'https' != $arrURL['scheme'] )
 
1174
                if ( 'http' != $arrURL['scheme'] && 'https' != $arrURL['scheme'] )
1175
1175
                        $url = preg_replace('|^' . preg_quote($arrURL['scheme'], '|') . '|', 'http', $url);
1176
1176
 
1177
1177
                $is_local = isset($args['local']) && $args['local'];