[wp-trac] [WordPress Trac] #34353: redirect_canonical() – Undefined indexes 'host' and 'scheme'

WordPress Trac noreply at wordpress.org
Tue Jul 4 17:30:31 UTC 2023


#34353: redirect_canonical() – Undefined indexes 'host' and 'scheme'
-------------------------------------------------+-------------------------
 Reporter:  theamila                             |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Canonical                            |     Version:  4.3.1
 Severity:  normal                               |  Resolution:
 Keywords:  needs-unit-tests has-patch needs-    |     Focuses:
  testing-info                                   |
-------------------------------------------------+-------------------------

Comment (by Slams):

 After enabling the HTTP/3.0 protocol, I'm receiving such warnings:
 {{{
 Undefined array key "host" in /wp-includes/canonical.php on line 699
 Undefined array key "scheme" in /wp-includes/canonical.php on line 720
 Undefined array key "host" in /wp-includes/canonical.php on line 687
 Undefined array key "host" in /wp-includes/canonical.php on line 696
 }}}

 Didn't test @oglekler patch yet.

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


More information about the wp-trac mailing list