Broken Preview Function for Draft Post
See original GitHub issueNow the render_post checks if @post.can_visit? , but that method checks if object.status == 'published'. This doesn’t allow to preview draft post since the post status is “draft” not “published”. The change was introduced in https://github.com/owen2345/camaleon-cms/commit/782f73334dd045c66d660747141bdfd71bc1ea2c .
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
How to Fix Draft Post Preview Not Working In WordPress
Are you seeing a 404 not found page when trying to preview draft post changes? In this video, I share a quick tip...
Read more >WordPress Preview Not Working: Here's How You Fix it
First of all, make sure your draft is saved and once that is done, log out of your WordPress and then log in...
Read more >Preview fails to display edits on published posts ... - GitHub
The preview button in the Gutenberg editor in Wordpress 5 RC3 doesn't display unsaved edits. Reproduced by creating and saving a page, ...
Read more >Custom preview_post_link not working for draft post
This is working fine for the custom post types and the post only in the case if they are published and the posts...
Read more >Save and Preview Content - Cascade Support
After making changes to your page, click Preview Draft in the upper right. A preview of the updated page will display in the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@choyno The visibility filter is used in many places. I’m not sure there would be any side effect if it allows draft post. Haven’t dig too far.
Great!