[wp-trac] [WordPress Trac] #56311: Week query variable is not being sanitized correctly

WordPress Trac noreply at wordpress.org
Sat Jul 30 13:14:19 UTC 2022


#56311: Week query variable is not being sanitized correctly
---------------------------+-----------------------
 Reporter:  domainsupport  |       Owner:  audrasjb
     Type:  defect (bug)   |      Status:  assigned
 Priority:  normal         |   Milestone:  6.1
Component:  Query          |     Version:
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+-----------------------
Changes (by audrasjb):

 * owner:  (none) => audrasjb
 * status:  new => assigned
 * version:  trunk =>
 * milestone:  Awaiting Review => 6.1


Comment:

 Good catch, I can reproduce the issue as well.

 `validate_date_values()` should contain a weeks per year function, just
 like other date queries do.

 See https://github.com/WordPress/wordpress-
 develop/blob/3fdce9eb4b13ab9e9f52c5636b730aaa43740b12/src/wp-includes
 /class-wp-date-query.php#L281

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


More information about the wp-trac mailing list