Changeset 47617 for trunk/src/wp-includes/http.php
- Timestamp:
- 04/24/2020 07:26:57 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/http.php
r47550 r47617 523 523 } 524 524 525 $parsed_url = @parse_url( $url );525 $parsed_url = parse_url( $url ); 526 526 if ( ! $parsed_url || empty( $parsed_url['host'] ) ) { 527 527 return false; … … 536 536 } 537 537 538 $parsed_home = @parse_url( get_option( 'home' ) );538 $parsed_home = parse_url( get_option( 'home' ) ); 539 539 540 540 if ( isset( $parsed_home['host'] ) ) { … … 655 655 * differences as well. 656 656 * 657 * Error suppression is used as prior to PHP 5.3.3, an E_WARNING would be generated658 * when URL parsing failed.659 *660 657 * @since 4.4.0 661 658 * @since 4.7.0 The `$component` parameter was added for parity with PHP's `parse_url()`. … … 685 682 } 686 683 687 $parts = @parse_url( $url );684 $parts = parse_url( $url ); 688 685 689 686 if ( false === $parts ) {
Note: See TracChangeset
for help on using the changeset viewer.