Make WordPress Core

Opened 6 years ago

#43482 new defect (bug)

Draft Posts Throw 404 on Preview when Supporting post_format

Reported by: marklavin's profile marklavin Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9.4
Component: Post Formats Keywords:
Focuses: ui, administration Cc:


A client is reporting that they're not able to preview drafts of some of the custom post types we have running on their site. The issue is not occurring for all post types on their site. I believe I've traced the issue to the fact that the errant post types support "post_format."

The preview URL that gets generated when I preview the "ask-the-expert" post is:

That above URL throws a 404 page.

When I pull out the 'post_format=standard' part of the query, so that the URL looks like:

then the preview loads correctly.

Interestingly, just for giggles I also tried:

and that also worked as it should. (notice the added underscore before 'post_format.'

For now I think I'm just going to disable post formats for the offending post types, but methinks I found a bug.

Change History (0)

Note: See TracTickets for help on using tickets.