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用先進的文字標記,然後按一下標籤插件
































