Changeset 45988 for branches/3.7/src/wp-includes/pluggable.php
- Timestamp:
- 09/04/2019 05:18:16 PM (5 years ago)
- Location:
- branches/3.7
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.7
-
branches/3.7/src
- Property svn:mergeinfo changed
/trunk/src merged: 45971
- Property svn:mergeinfo changed
-
branches/3.7/src/wp-includes/pluggable.php
r40194 r45988 992 992 return $default; 993 993 994 if ( ! isset( $lp['host'] ) && ! empty( $lp['path'] ) && '/' !== $lp['path'][0] ) { 995 $path = ''; 996 if ( ! empty( $_SERVER['REQUEST_URI'] ) ) { 997 $path = dirname( parse_url( 'http://placeholder' . $_SERVER['REQUEST_URI'], PHP_URL_PATH ) . '?' ); 998 } 999 $location = '/' . ltrim( $path . '/', '/' ) . $location; 1000 } 1001 994 1002 // Reject if certain components are set but host is not. This catches urls like https:host.com for which parse_url does not set the host field. 995 1003 if ( ! isset( $lp['host'] ) && ( isset( $lp['scheme'] ) || isset( $lp['user'] ) || isset( $lp['pass'] ) || isset( $lp['port'] ) ) ) {
Note: See TracChangeset
for help on using the changeset viewer.