- Timestamp:
- 09/04/2019 04:56:33 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r45932 r45971 1406 1406 if ( isset( $lp['scheme'] ) && ! ( 'http' == $lp['scheme'] || 'https' == $lp['scheme'] ) ) { 1407 1407 return $default; 1408 } 1409 1410 if ( ! isset( $lp['host'] ) && ! empty( $lp['path'] ) && '/' !== $lp['path'][0] ) { 1411 $path = ''; 1412 if ( ! empty( $_SERVER['REQUEST_URI'] ) ) { 1413 $path = dirname( parse_url( 'http://placeholder' . $_SERVER['REQUEST_URI'], PHP_URL_PATH ) . '?' ); 1414 } 1415 $location = '/' . ltrim( $path . '/', '/' ) . $location; 1408 1416 } 1409 1417
Note: See TracChangeset
for help on using the changeset viewer.