Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#54723 new defect (bug)

_wp_customize_loader_settings 'host'

Reported by: lagiosdi's profile lagios.di Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Customize Keywords: has-patch close
Focuses: Cc:

Description (last modified by sabernhardt)

Undefined array key "host" in <b>wp-includes/theme.php</b> on line <b>3511</b>

Because i want relative permalinks to my site i use a filter like this

add_filter( 'home_url', function ($url){
return set_url_scheme( $url, 'relative' );
} );

So, $home_origin['host'] in file theme.php produces Undefined array

Change History (3)

#1 @sabernhardt
2 years ago

  • Description modified (diff)

This ticket was mentioned in PR #2107 on WordPress/wordpress-develop by lagiosdi.


2 years ago
#2

  • Keywords has-patch added

#3 @dlh
2 years ago

  • Component changed from General to Customize
  • Keywords close added

Hi @lagiosdi, and welcome to WordPress Trac!

WordPress doesn't support delivering relative URLs by default. See #17048. It seems reasonable to me to expect that host exists within home_url(), so I'll mark this ticket as a candidate to be closed, but I'm open to other thoughts.

Note: See TracTickets for help on using tickets.