Changeset 29850 for trunk/src/wp-includes/class-http.php
- Timestamp:
- 10/08/2014 05:37:56 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-http.php
r29849 r29850 676 676 return $maybe_relative_path; 677 677 678 // Check for a scheme.679 if ( false !== strpos( $maybe_relative_path, '://' ) )680 return $maybe_relative_path;681 682 678 if ( ! $url_parts = @parse_url( $url ) ) 683 679 return $maybe_relative_path; … … 685 681 if ( ! $relative_url_parts = @parse_url( $maybe_relative_path ) ) 686 682 return $maybe_relative_path; 683 684 // Check for a scheme on the 'relative' url 685 if ( ! empty( $relative_url_parts['scheme'] ) ) { 686 return $maybe_relative_path; 687 } 687 688 688 689 $absolute_path = $url_parts['scheme'] . '://' . $url_parts['host'];
Note: See TracChangeset
for help on using the changeset viewer.