[wp-trac] [WordPress Trac] #63316: [E_WARNING] Undefined array key "host" in wp-includes/canonical.php on line 717

WordPress Trac noreply at wordpress.org
Mon Nov 3 19:41:39 UTC 2025


#63316: [E_WARNING] Undefined array key "host" in wp-includes/canonical.php on line
717
-------------------------------------------------+-------------------------
 Reporter:  ArtZ91                               |       Owner:
                                                 |  johnjamesjacoby
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  6.9
Component:  Canonical                            |     Version:  2.3
 Severity:  minor                                |  Resolution:
 Keywords:  has-test-info has-patch dev-         |     Focuses:
  feedback has-unit-tests commit                 |
-------------------------------------------------+-------------------------
Changes (by johnjamesjacoby):

 * keywords:  has-test-info has-patch dev-feedback has-unit-tests => has-
     test-info has-patch dev-feedback has-unit-tests commit


Comment:

 @SirLouen Thanks for your persistence here.

 I'm comfortable committing your PR for 6.9.

 It fixes the issue for me, too, and is the most minimally invasive way I
 can see to address this.

 > An Empty host can't be done with HTTP1.1+ and supporting HTTP1.0 doesn't
 make much sense in 2025, but still a "catch-all" in user_home could also
 make sense

 Agree about actively supporting HTTP1.0. That's a larger decision that you
 can influence via this issue and help communicate more broadly in the
 future if/when the need arises.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63316#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list