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

WordPress Trac noreply at wordpress.org
Tue Jun 3 10:23:50 UTC 2025


#56311: Week query variable is not being sanitized correctly
-------------------------------------------------+-------------------------
 Reporter:  domainsupport                        |       Owner:  audrasjb
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Query                                |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-test-info needs-unit-tests       |     Focuses:
  changes-requested                              |
-------------------------------------------------+-------------------------

Comment (by domainsupport):

 OK, I had a feeling it was something like pagination. So surely if the
 value for `day` is being picked up as `51` when it should be the value of
 `paged` then something's not quite right and either it's a `day` value or
 a `paged` value but it can't be both.

 So I feel like the patch is valid (for what it's intended to do) but
 there's a bug somewhere that's related that is incorrectly applying the
 value to `day` when it should be applied to `paged`? Or more likely it's
 being applied to both when it should just be applied to `paged`?

 Is there already a bug report for that? Because if there isn't surely one
 will be required to be resolved before this patch can be applied?

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


More information about the wp-trac mailing list