Changeset 45984 for branches/4.1
- Timestamp:
- 09/04/2019 05:13:43 PM (6 years ago)
- Location:
- branches/4.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.1
-
branches/4.1/src/wp-includes/pluggable.php
r40190 r45984 1260 1260 return $default; 1261 1261 1262 if ( ! isset( $lp['host'] ) && ! empty( $lp['path'] ) && '/' !== $lp['path'][0] ) { 1263 $path = ''; 1264 if ( ! empty( $_SERVER['REQUEST_URI'] ) ) { 1265 $path = dirname( parse_url( 'http://placeholder' . $_SERVER['REQUEST_URI'], PHP_URL_PATH ) . '?' ); 1266 } 1267 $location = '/' . ltrim( $path . '/', '/' ) . $location; 1268 } 1269 1262 1270 // 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. 1263 1271 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.