Changeset 47122 for trunk/src/wp-includes/class-http.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-http.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-http.php
r47096 r47122 944 944 } 945 945 946 // Check for a scheme on the 'relative' url946 // Check for a scheme on the 'relative' URL. 947 947 if ( ! empty( $relative_url_parts['scheme'] ) ) { 948 948 return $maybe_relative_path; … … 951 951 $absolute_path = $url_parts['scheme'] . '://'; 952 952 953 // Schemeless URLs will make it this far, so we check for a host in the relative url954 // and convert it to a protocol- url953 // Schemeless URLs will make it this far, so we check for a host in the relative URL 954 // and convert it to a protocol-URL. 955 955 if ( isset( $relative_url_parts['host'] ) ) { 956 956 $absolute_path .= $relative_url_parts['host']; … … 965 965 } 966 966 967 // Start off with the Absolute URL path.967 // Start off with the absolute URL path. 968 968 $path = ! empty( $url_parts['path'] ) ? $url_parts['path'] : '/'; 969 969 … … 989 989 } 990 990 991 // Add the Query string.991 // Add the query string. 992 992 if ( ! empty( $relative_url_parts['query'] ) ) { 993 993 $path .= '?' . $relative_url_parts['query'];
Note: See TracChangeset
for help on using the changeset viewer.