[wp-trac] [WordPress Trac] #52252: PHP Notice when `monthnum` query var is set without the `year` QV

WordPress Trac noreply at wordpress.org
Tue Feb 9 14:30:25 UTC 2021


#52252: PHP Notice when `monthnum` query var is set without the `year` QV
-----------------------------------------+-----------------------------
 Reporter:  dd32                         |       Owner:  johnbillion
     Type:  defect (bug)                 |      Status:  reviewing
 Priority:  normal                       |   Milestone:  Future Release
Component:  Query                        |     Version:  4.3
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:
-----------------------------------------+-----------------------------
Changes (by johnbillion):

 * keywords:  good-first-bug has-patch => has-patch reporter-feedback
 * milestone:  5.7 => Future Release


Comment:

 I'm so far unable to reproduce this problem. Requesting `?monthnum=2` on
 my local installation doesn't trigger a notice. There's a guard condition
 at the beginning of `wp_resolve_numeric_slug_conflicts()` that protects
 against accessing the `year`, `monthnum`, or `day` indexes of
 `$query_vars`.

 @dd32 Is anything else needed to trigger this notice? Is w.org running
 trunk?

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


More information about the wp-trac mailing list