[wp-trac] [WordPress Trac] #47068: get_queried_object() returns null date archives and on homepage with blog on front settings
WordPress Trac
noreply at wordpress.org
Mon Dec 1 11:51:43 UTC 2025
#47068: get_queried_object() returns null date archives and on homepage with blog
on front settings
--------------------------+------------------------------
Reporter: bplv | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Changes (by SirLouen):
* version: 5.1.1 => 4.7
Comment:
Replying to [comment:9 wildworks]:
> As a general rule, I don't think the version number should be changed
once it's been set, so let's change it back to what it was.
>
> See: https://make.wordpress.org/core/handbook/testing/reporting-
bugs/#:~:text=The%20Version%20field%20relates%20to%20the%20version%20in%20which%20the%20bug%20was%20originally%20discovered.%20If%20you%E2%80%99re%20seeing%20the%20same%20bug%20in%20a%20newer%20version%2C%20mention%20so%20in%20a%20comment%2C%20but%20please%20do%20not%20change%20the%20version%20number.
>
> > The Version field relates to the version in which the bug was
originally discovered. If you’re seeing the same bug in a newer version,
mention so in a comment, but please do not change the version number.
Back in the day, after reading exactly these docs, I was setting to
`trunk` pretty much every ticket I opened (because 99% of the bugs and
issues I found were discovered while using `trunk`)
But I can't remember which long-standing committer (Peter, Aaron, or
Sergey), told me that the version was meant to point out when the bug was
introduced, not discovered. I think that these docs must be updated
because they are misleading.
From that day, while triaging my components, I remove the version when I'm
confident that it's not set to when it was introduced (but I have not dug
into it deeper to find the exact moment when it was introduced).
So technically it was minimally introduced in 4.7 (broken by design).
cc @ellatrix
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47068#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list