Make WordPress Core

Opened 5 months ago

Last modified 5 months ago

#60566 new defect (bug)

Posts Page as Draft remains publicly queryable

Reported by: cybr's profile Cybr Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Query Keywords: needs-patch
Focuses: Cc:


When assigning a Posts Page at "WP Admin > Settings > Reading" and afterward setting that page to draft, the page remains publicly queryable. This is possible via the ?page_id= query (not ?p=) and the provisioned slug.

Change History (2)

#1 @Cybr
5 months ago

When adding a preview=true-query, the Posts Page will return a 404 response.

#2 @swissspidy
5 months ago

  • Component changed from General to Query
  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release

Can confirm this.

Any non-empty ?page_id= query var will work if the posts page is a draft.

Only when using ?page_id=<id> will the page title also be displayed.

Note: See TracTickets for help on using tickets.