[wp-trac] [WordPress Trac] #58191: Preview mode button breaks in custom post types in wordpress 6.2 - manually removing "preview_nonce=" from url fixes it

WordPress Trac noreply at wordpress.org
Tue Apr 25 15:30:59 UTC 2023


#58191: Preview mode button breaks in custom post types in wordpress 6.2 - manually
removing "preview_nonce=" from url fixes it
--------------------------+-----------------------------
 Reporter:  gabez123      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  6.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58191>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list