Changeset 58097 for trunk/src/wp-includes/feed.php
- Timestamp:
- 05/04/2024 07:23:31 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/feed.php
r58096 r58097 661 661 */ 662 662 function get_self_link() { 663 $host = parse_url( home_url() ); 664 return set_url_scheme( 'http://' . $host['host'] . wp_unslash( $_SERVER['REQUEST_URI'] ) ); 663 $parsed = parse_url( home_url() ); 664 665 $domain = $parsed['host']; 666 if ( isset( $parsed['port'] ) ) { 667 $domain .= ':' . $parsed['port']; 668 } 669 670 return set_url_scheme( 'http://' . $domain . wp_unslash( $_SERVER['REQUEST_URI'] ) ); 665 671 } 666 672
Note: See TracChangeset
for help on using the changeset viewer.