Changeset 45987 for branches/3.8/src/wp-includes/pluggable.php
- Timestamp:
- 09/04/2019 05:17:57 PM (7 years ago)
- Location:
- branches/3.8
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/pluggable.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.8
-
branches/3.8/src/wp-includes/pluggable.php
r40193 r45987 989 989 return $default; 990 990 991 if ( ! isset( $lp['host'] ) && ! empty( $lp['path'] ) && '/' !== $lp['path'][0] ) { 992 $path = ''; 993 if ( ! empty( $_SERVER['REQUEST_URI'] ) ) { 994 $path = dirname( parse_url( 'http://placeholder' . $_SERVER['REQUEST_URI'], PHP_URL_PATH ) . '?' ); 995 } 996 $location = '/' . ltrim( $path . '/', '/' ) . $location; 997 } 998 991 999 // 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. 992 1000 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.