[wp-trac] [WordPress Trac] #17737: Be better at forcing data types for query vars

WordPress Trac noreply at wordpress.org
Fri Jul 1 00:55:07 UTC 2022


#17737: Be better at forcing data types for query vars
-------------------------------------------------+-------------------------
 Reporter:  juliobox                             |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  reviewing
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Query                                |     Version:  3.0
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-screenshots needs-     |     Focuses:
  testing early needs-unit-tests                 |
-------------------------------------------------+-------------------------

Comment (by johnregan3):

 Added tests to 17737.8.diff

 While writing tests, I found that non-scalar values passed to a few fields
 (`$qv['minute']`, `$qv['menu_order']`, etc) were slipping through.  These
 are fixed now.

 Unit Tests FTW!

 @SergeyBiryukov Polite bump.

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


More information about the wp-trac mailing list