[wp-trac] [WordPress Trac] #46296: Posts set to 'private' and password protected should return a 403 HTTP header status
WordPress Trac
noreply at wordpress.org
Mon Jul 10 16:17:33 UTC 2023
#46296: Posts set to 'private' and password protected should return a 403 HTTP
header status
-------------------------------+------------------------------
Reporter: jonoaldersonwp | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version:
Severity: minor | Resolution:
Keywords: seo has-patch | Focuses:
-------------------------------+------------------------------
Changes (by Presskopp):
* keywords: seo needs-patch => seo has-patch
Comment:
Rethinking this, it seems like the `404` for `private` is perfectly fine,
only the `200` for `password protected` not. Patching to `403` therefore.
I assume the patch could be more elegant, but I'm happy I made it so far.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46296#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list