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

WordPress Trac noreply at wordpress.org
Fri Dec 29 13:53:17 UTC 2023


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

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57232" 57232]:
 {{{
 #!CommitTicketReference repository="" revision="57232"
 Canonical: Check if the `author` parameter is a string in
 `redirect_canonical()`.

 This avoids a PHP warning or error when viewing an author on the front
 end, while an array is passed as `$_GET['author']`.

 Follow-up to [12034], [12040], [12202].

 Props david.binda, antonvlasenko, azaozz, SergeyBiryukov.
 Fixes #60059.
 }}}

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


More information about the wp-trac mailing list