Opened 3 years ago
Last modified 3 years ago
#54723 new defect (bug)
_wp_customize_loader_settings 'host'
Reported by: | lagios.di | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Customize | Keywords: | has-patch close |
Focuses: | Cc: |
Description (last modified by )
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)
This ticket was mentioned in PR #2107 on WordPress/wordpress-develop by lagiosdi.
3 years ago
#2
- Keywords has-patch added
#3
@
3 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.
54723 ticket
Trac ticket: https://core.trac.wordpress.org/ticket/54723#no0
Trac ticket: https://core.trac.wordpress.org/ticket/54723#no0