Opened 3 years ago
Last modified 3 years ago
#58191 new defect (bug)
Preview mode button breaks in custom post types in wordpress 6.2 - manually removing "preview_nonce=" from url fixes it
| Reported by: | gabez123 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Editor | Version: | |
| Severity: | normal | Keywords: | reporter-feedback |
| Cc: | Focuses: |
Description
Hi,
After updating to wordpress 6.2 from wordpress 6.1.1 the Preview mode for my custom post type stopped working.
I have a custom post type which publishes a different type of post. Whenever I click on preview to see the custom post type preview, it adds "preview_nonce=" to the url. This causes the page to be completely blank other than the header and sidebar. When I remove the "preview_nonce=" from the url the preview works perfectly.
I noticed that if I click preview from the list of custom posts rather than from the preview button in the custom post type, it loads perfectly fine without the preview_nonce in the url. Is this a wordpress bug?
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hello, welcome to WordPress Core Trac and thank you for opening this ticket.
I wasn't able to reproduce the issue on WordPress 6.2 using a custom post type declared in Twenty Nineteen's functions.php file. Could you please try to reproduce the issue on a fresh WordPress installation (without any plugin)?