[wp-trac] [WordPress Trac] #17737: Be better at forcing data types for query vars
WordPress Trac
noreply at wordpress.org
Sat Aug 13 22:29:34 UTC 2022
#17737: Be better at forcing data types for query vars
-------------------------------------------------+-------------------------
Reporter: juliobox | Owner:
| johnbillion
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.1
Component: Query | Version: 3.0
Severity: normal | Resolution: fixed
Keywords: has-patch has-screenshots needs- | Focuses:
testing early has-unit-tests |
-------------------------------------------------+-------------------------
Changes (by johnbillion):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"53891" 53891]:
{{{
#!CommitTicketReference repository="" revision="53891"
Query: Be better at forcing data types for query vars.
Several query vars only accept a scalar value and pass the value through
functions that assume a scalar value. Adding extra guard conditions to the
types of query vars doesn't affect their functionality but does remove PHP
notices and warnings that can otherwise be generated when a non-scalar
value such as an array is present in a query var.
Props juliobox, xknown, SergeyBiryukov, dave1010, nacin, tellyworth, dd32,
audrasjb, johnregan3
Fixes #17737
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17737#comment:63>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list