0

Any of the recent Wordpress updates have removed the revision option from the classic editor. It runs in the background and saves the regions but no way to access it on the classic editor. Gutenburg has and supports the revision option well. But I don't use Gutenburg.

I don't know when they removed the feature, but I only realized today. How can I get the feature back on my Classic editor?

I checked my database, I have the revisions, even for new posts, and I also checked by enabling the Block editor.

6
  • I did some research but found no solution. It seems people are complaining on wordpress.org forum from 2019 about this issue. But no proper solution there.
    – Bikram
    Jun 18 '20 at 8:12
  • WordPress did not disable the feature. But the Revisions section in the Publish metabox and the Revisions metabox are only available if the current post has 1 or more revisions. I've tested on WordPress 5.4.2 with both the Classic Editor plugin and the built-in/core classic editor in WordPress. Or am I not understanding something here?
    – Sally CJ
    Jun 18 '20 at 9:36
  • I have revisions of posts on my database, but not in the post edit screen. I have tested my posts today. I have disable the block editor with this: add_filter('use_block_editor_for_post', '__return_false', 10); could that be the issue? Revisions are available if I remove the code and view on the block editor.
    – Bikram
    Jun 18 '20 at 10:50
  • "revisions of posts on my database" - but for the current post you're editing, does it actually have any revisions? And that filter hook should be good, but have you tried using the Classic Editor plugin?
    – Sally CJ
    Jun 18 '20 at 11:27
  • 1
    Thanks @SallyCJ : Classic editor plugin works. Currently, I'm looking into the plugin codes. I will try to use the editor as the plugin do.
    – Bikram
    Jun 19 '20 at 3:14
0

I used to disable the Gutenberg with this:

//disable gutenburg
add_filter('use_block_editor_for_post', '__return_false', 10);

This filter disables the Gutenberg sitewide but it doesn't work smoothly in other custom-post-types. Not only the revisions but other features are also hidden on the post edit screen of custom-post-types.

Changing this to the post type filter works smoothly across all post types.

//disable Gutenburg
add_filter( 'use_block_editor_for_post_type', '__return_false', 10 );

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.