[wp-trac] [WordPress Trac] #59494: Passing orderby as array in URL results in Notice

WordPress Trac noreply at wordpress.org
Tue Apr 23 22:22:32 UTC 2024


#59494: Passing orderby as array in URL results in Notice
----------------------------+---------------------
 Reporter:  NomNom99        |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  6.6
Component:  Administration  |     Version:  4.0
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+---------------------

Comment (by peterwilsoncc):

 The source changes in the [https://github.com/WordPress/wordpress-
 develop/pull/5404 linked pull request] look good to me.

 I don't think any tests will need to be updated but adding some to make
 sure the search box doesn't through a notice would be helpful. The tests
 would need to set `$_REQUEST` values directly and prior to calling the
 `search_box` method.

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


More information about the wp-trac mailing list