Restose content from revisions – sql query
Restose content from revisions – sql query
Restose content from revisions – sql query
Updating a page won’t have any effect
The problem turned out to be the transition from utf8 encoded databases to utf8mb4. Apparently the editor was getting a silent error and defaulted to dropping the transaction. The Solution: Recently WordPress has started switching to using utf-8mb4, so most people probably need to change their charset <meta charset=”UTF-8″ to <meta charset=”UTF-8mb4″>. Very old and … Read more
I think that revisions are disabled by default in the latest WP (but can’t guarantee that). I do know that if you want to enable revisions, then change an value in the wp-config.php file: define( ‘WP_POST_REVISIONS’, 3 ); That will save the last 3 revisions. Turn if off with a value of 0 or false. … Read more
Preview previous revision without restoring it
How to hide html tags on revision comparison pages?
Open up your wp-config.php file. Add the following line: define(‘WP_POST_REVISIONS’, 2); You may have to change it from 2 to 1. Always back up your files first. EDIT: this will not save your original. Sorry, I overlooked that part of the question.
I would not recommend the Save as Draft approach as I don’t believe it will help you accomplish your ultimate goal. WordPress is saving revisions in a non-public Post Type (more info here). I found a “Changelog” plugin, which may help track changes to existing blog posts. You can see that here https://wordpress.org/plugins/awesome-changelog/. Finally, a … Read more
define(‘WP_POST_REVISIONS’, false); function disable_autosave() { wp_deregister_script(‘autosave’); } add_action(‘wp_print_scripts’, ‘disable_autosave’); Simple method
WP Storing postmeta into revisions