How To Store Every Post Revisions on Each Auto-Save in WordPress with Limit on Versions Count如何存储每一个岗位的修改对每个自动储存在WordPress与限制的版本计数
AutoSave feature has been added into WordPress core since自动功能已加入的WordPress的核心以来, version 2.1 2.1版 to protect user from accidental lose of writing or draft when web browser crashes or tab been accidentally closed.为了保护用户免受意外失去的书面或草案时, Web浏览器崩溃或标签被意外关闭。 AutoSave will auto save a copy of edited post or page every 60 seconds provided there is a change on the content in the editor.自动将自动保存一份副本邮寄或编辑的网页每隔60秒提供的是有变化的内容在编辑器中。
However, there is only ever a maximum of one AutoSave version for any given post.不过,有以往任何时候都只有最多一个自动版本为任何特定的职位。 New AutoSaves created will overwrite old AutoSaves.新autosaves创造了将覆盖岁autosaves 。 Beside, AutoSaves are stored as a special type of revision so that the auto saved with a more recent version of data does not overwrite actual published content, and is used to restore unsaved work only when necessary.旁边, autosaves存储作为一种特殊类型的修订,使自动保存一个更最新版本的数据不覆盖的实际发布的内容,是用来恢复未保存的工作,只在必要时。
For webmaster who wants to take a post revision history tracking based on each and every AutoSave copy been made, there is an option that force WordPress to save each auto saved copy of post content also as a post revision, a feature introduced in为网站管理员谁要采取邮政修订历史跟踪的基础上的每一个自动复制取得,是有选择的力量在WordPress为了节省每一个自动保存的副本后的内容,也作为一个后修改,一项功能,介绍了在 WordPress 2.6在WordPress 2.6 . 。
To save and store a post or page as a revision version whenever AutoSave is triggered, add in the following line of code to wp-config.php configuration file:为了节省存储后或网页作为一个修订版本时,自动触发,添加在下面的代码行,以可湿性粉剂- config.php配置文件:
define(’WP_POST_REVISIONS’, int ); 界定( ' wp_post_revisions ' , 诠释 ) ;
where int is an integer bigger than 0 (0 represents false which凡诠释是一个整数大于0 ( 0代表虚假其中 disable post revisions storage停用后的修改,存储 ). ) 。 The integer number set will represent the limit of number of post revisions WordPress going to save and store per post or per page in database.整数数集将代表人数的限制后修改的WordPress去保存和存储每邮寄或每页在数据库中。 Each AutoSave session will increase the revision count by 1 too.每个会议将自动增加修订计数1 。 If the number of revisions already exceed the limit, oldest revisions are automatically deleted.如果一些修改,已经超过了极限,最古老的修改自动删除。 Note that AutoSave will always have its own saved copy to reflect the most current changes.请注意,自动将始终有其自己保存的副本,以反映最新的变化。
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要说明 :这是一个机器翻译网页是“按原样”提供的担保。 Machine translation may be difficult to understand.机器翻译可能很难理解。 Please refer to请参阅 original English article原来的英语文章 whenever possible.只要有可能。
Share and contribute or get technical support and help at分享和贡献,或取得技术的支持和帮助,在 My Digital Life Forums 我的数字生活论坛 . 。
Related Articles相关文章
- Disable and Turn Off Post Revisions Tracking in WordPress 2.6 or Above禁用和关闭后的修改,跟踪在WordPress 2.6或以上
- How to Delete Existing WordPress Post Revisions Stored/Saved如何删除现有的WordPress修改后的储存/保存
- How to Change the Frequency or Interval WordPress Auto Saves An Editing Post or Page如何改变频率或间隔的WordPress自动保存编辑的职位或网页
- Retrieve and Get WordPress Post ID Outside the Loop as PHP Variable检索和获取的WordPress张贴ID以外的回路作为PHP变量
- WordPress 2.6 with Change Revision Tracking Feature Available for Free Download在WordPress 2.6与变化修订跟踪功能,提供免费下载
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working paginating或分裂的WordPress邮寄或网页下一页在WordPress没有工作
- Adding Extra More Fields to WordPress Write/Edit Post/Page Right Column加入额外的更多领域的WordPress写/编辑帖子/页右边一栏
- Disable Auto Go To (Jump) To Read More Tag禁用自动转到(跳转)来读取更多的标签
- WordPress MySQL SQL Query Error in WPDB Class在WordPress MySQL的SQL查询错误在wpdb级
- Manage Tags in WordPress 2.3 with Advanced Tag Entry and Click Tags Plugins管理标签在WordPress 2.3用先进的文字标记,然后按一下标签插件
































