[wp-trac] [WordPress Trac] #52252: PHP Notice when `monthnum` query var is set without the `year` QV
WordPress Trac
noreply at wordpress.org
Sun Aug 7 23:04:12 UTC 2022
#52252: PHP Notice when `monthnum` query var is set without the `year` QV
-------------------------------------------------+-------------------------
Reporter: dd32 | Owner:
| peterwilsoncc
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.1
Component: Rewrite Rules | Version: 4.3
Severity: normal | Resolution: fixed
Keywords: has-patch early needs-unit-tests | Focuses:
commit |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"53857" 53857]:
{{{
#!CommitTicketReference repository="" revision="53857"
Rewrite rules: Prevent malformed date requests throwing notices.
Ensure that date queries contain each component before attempting to use
them. This prevents http requests triggering notices if a portion of the
date is missing. For example a request containing a day and year but no
month, a request containing a month bu not year.
Props ovidiul, dd32, peterwilsoncc, costdev, johnbillion, SergeyBiryukov,
desrosj, tremidkhar, hellofromTonya.
Fixes #52252.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52252#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list