[wp-trac] [WordPress Trac] #64870: Fatal TypeError: urldecode() expects string, array given in formatting.php (PHP 8+)

WordPress Trac noreply at wordpress.org
Wed Mar 18 21:02:26 UTC 2026


#64870: Fatal TypeError: urldecode() expects string, array given in formatting.php
(PHP 8+)
-------------------------------------------+-----------------------------
 Reporter:  patricedefago                  |       Owner:  SergeyBiryukov
     Type:  defect (bug)                   |      Status:  closed
 Priority:  normal                         |   Milestone:  7.0
Component:  Formatting                     |     Version:  6.9.1
 Severity:  normal                         |  Resolution:  fixed
 Keywords:  has-patch php8 has-unit-tests  |     Focuses:
-------------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"62047" 62047]:
 {{{
 #!CommitTicketReference repository="" revision="62047"
 Query: Check that taxonomy query var is a string in
 `WP_Query::parse_tax_query()`.

 This prevents a fatal error from `urldecode()` in `wp_basename()` if an
 array is passed instead.

 Follow-up to [15732], [15824], [15825], [15923], [16155], [50565],
 [60927].

 Props patricedefago, alexodiy, SergeyBiryukov.
 Fixes #64870.
 }}}

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


More information about the wp-trac mailing list