Opened 5 years ago
Closed 14 months ago
#54723 closed defect (bug) (wontfix)
_wp_customize_loader_settings 'host'
| Reported by: | lagios.di | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Customize | Version: | |
| Severity: | normal | Keywords: | has-patch close |
| Cc: | Focuses: |
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 (4)
This ticket was mentioned in PR #2107 on WordPress/wordpress-develop by lagiosdi.
5 years ago
#2
- Keywords has-patch added
#3
@
5 years ago
- Component General → 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
54723 ticket
Trac ticket: https://core.trac.wordpress.org/ticket/54723#no0
Trac ticket: https://core.trac.wordpress.org/ticket/54723#no0