[wp-trac] [WordPress Trac] #37832: Using ?p=xxx on a posts page with an invalid post ID does not return a 404 status
WordPress Trac
noreply at wordpress.org
Thu Oct 30 20:13:58 UTC 2025
#37832: Using ?p=xxx on a posts page with an invalid post ID does not return a 404
status
--------------------------+-----------------------
Reporter: smerriman | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: Canonical | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+-----------------------
Changes (by smerriman):
* status: closed => reopened
* resolution: worksforme =>
Comment:
9 years later, finally a response, and you don't even follow the
instructions :(
I still replicate the behavior exactly as is:
- create a Page, and set it as the posts page
- visit this page, appending ?p=123456 to the end of the URL, to see a 200
response.
I don't know why in the testing instructions you changed this to append
the author parameter instead.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37832#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list