[wp-trac] [WordPress Trac] #60059: Warning / Error in wp-includes/canonical.php when $_GET['author'] is an array

WordPress Trac noreply at wordpress.org
Tue Dec 19 13:27:30 UTC 2023


#60059: Warning / Error in wp-includes/canonical.php when $_GET['author'] is an
array
---------------------------------------------+-----------------------------
 Reporter:  david.binda                      |       Owner:  (none)
     Type:  defect (bug)                     |      Status:  new
 Priority:  normal                           |   Milestone:  Awaiting
                                             |  Review
Component:  Canonical                        |     Version:  trunk
 Severity:  normal                           |  Resolution:
 Keywords:  needs-testing reporter-feedback  |     Focuses:
---------------------------------------------+-----------------------------

Comment (by david.binda):

 > I'm wondering why there is an array in the GET parameters. Did it work
 like that before? If not (i.e. is this a recent bug), what caused an array
 to appear in the GET parameters?

 The concern raised in terms of this ticket is the PHP 8 compatibility of
 the code. While the code under PHP 7 "works" and "just" produces a warning
 while displaying the author page (ignoring the GET param), under PHP 8 it
 produces a fatal error.

 So it's not the functionality of an array passed to the author GET param,
 sorry for not being clear.

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


More information about the wp-trac mailing list