Changeset 8545
- Timestamp:
- 08/05/2008 05:45:34 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/http.php
r8544 r8545 543 543 $arrURL = parse_url($url); 544 544 545 if ( false === $arrURL ) 546 return new WP_Error('http_request_failed', sprintf(__('Malformed URL: %s'), $url)); 547 545 548 if ( 'http' != $arrURL['scheme'] || 'https' != $arrURL['scheme'] ) 546 549 $url = str_replace($arrURL['scheme'], 'http', $url); 547 550 548 $handle = fopen($url, 'r'); 551 if ( !defined('WP_DEBUG') || ( defined('WP_DEBUG') && false === WP_DEBUG ) ) 552 $handle = @fopen($url, 'r'); 553 else 554 $handle = fopen($url, 'r'); 549 555 550 556 if (! $handle) … … 637 643 638 644 $arrURL = parse_url($url); 645 646 if ( false === $arrURL ) 647 return new WP_Error('http_request_failed', sprintf(__('Malformed URL: %s'), $url)); 639 648 640 649 if ( 'http' != $arrURL['scheme'] || 'https' != $arrURL['scheme'] ) … … 657 666 $context = stream_context_create($arrContext); 658 667 659 $handle = fopen($url, 'r', false, $context); 668 if ( !defined('WP_DEBUG') || ( defined('WP_DEBUG') && false === WP_DEBUG ) ) 669 $handle = @fopen($url, 'r'); 670 else 671 $handle = fopen($url, 'r'); 660 672 661 673 if ( ! $handle)
Note: See TracChangeset
for help on using the changeset viewer.