Taking Control of Revisions on a Per Post Basis As an example, WP Engine disables revisions by default and require that you contact them to enable the option. If you don’t have access to your wp-config.php file, or are still experiencing problems at this stage, you might have to reach out to your hosting provider. Setting revisions options via wp-config.php. There are two further small items worth pointing out at this stage: you need to set this value above where you define ABSPATH in your config file, and you also have the option of taking more control over your autosaves with AUTOSAVE_INTERVAL as pictured below. A number greater than zero: This limits your revision count to a specific number and automatically deletes older revisions.false or 0: This removes revisions entirely and limits you to the most recent autosave per post.true or -1: This is the default option in WordPress and makes it store every revision per post.You’ve got three basic options when it comes to passing a value into WP_POST_REVISIONS: As a first step in working out what’s going on, pop open your wp-config.php file and look for a line like the following: If you’re not seeing revisions as an option in your post settings, they’ve almost certainly been switched off at the configuration level. If you’re setting up WordPress from scratch, post revisions should be automatically enabled on your site with a default setting of storing every post revision. The biggest usability gripe you’re likely to run into is that it’s nigh on impossible to easily select and copy text from a particular revision directly from within the comparison view because it will inevitably select text from both posts. In terms of actual action items available to you here, the decision is basically to restore or not to restore. In the example below, we’re comparing versions that aren’t immediately after one another: Comparing two revisions from different time periods in WordPress. In addition to viewing the versions, you also have the option of restoring to a previous version entirely.Īlong with being able to compare adjacent versions, you can also highlight changes between completely separate versions by ticking the Compare any two revisions checkbox and then use the slider to select the options you’re after. If you’re used to code diff tools, the basic layout of the page here will be familiar with the previous version on the left, newer version on the right, and differences highlighted visually. The basic revisions interface in WordPress. In the example below, you can see that a headline was change and new content was added to the post. You can then see what changes were made in each revision by dragging a slider, or using the Previous and Next buttons (pictured below). To do this, click on Browse in the post editor (as pictured above). You can then access older versions of your posts and compare revisions. When you create a new post in WordPress, the post revisions feature kicks in and stores a record of each saved draft or published update. Revisions being tracked in a WordPress post. In this post, we’ll show you how to use post revisions, how to manage them and how to turn them off. If you’re working on an article and regret deleting a passage of text, you can look back over your previous drafts and undo any changes. Post revisions have been around since WordPress 2.6 and ensure your content is saved periodically do you can revert back to earlier versions of your posts when the unlikely happens, such as power outages or browser crashes. WordPress automatically saves versions of your posts so you don’t have to.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |