Changeset 45972
- Timestamp:
- 09/04/2019 04:57:35 PM (4 years ago)
- Location:
- branches/5.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.2
-
branches/5.2/src/wp-includes/pluggable.php
r45204 r45972 1395 1395 if ( isset( $lp['scheme'] ) && ! ( 'http' == $lp['scheme'] || 'https' == $lp['scheme'] ) ) { 1396 1396 return $default; 1397 } 1398 1399 if ( ! isset( $lp['host'] ) && ! empty( $lp['path'] ) && '/' !== $lp['path'][0] ) { 1400 $path = ''; 1401 if ( ! empty( $_SERVER['REQUEST_URI'] ) ) { 1402 $path = dirname( parse_url( 'http://placeholder' . $_SERVER['REQUEST_URI'], PHP_URL_PATH ) . '?' ); 1403 } 1404 $location = '/' . ltrim( $path . '/', '/' ) . $location; 1397 1405 } 1398 1406
Note: See TracChangeset
for help on using the changeset viewer.