內容簡介
這個外掛是建立在使用 Git 進行版本控制的正式伺服器上,如果在正式伺服器上直接更新外掛,它們可能會與版本庫不同步,且稍後對伺服器的推送可能會“回滾”未提交到版本庫的外掛更新。
嘗試透過「外掛」頁面更新外掛的使用者將會看到請求確認的模態視窗。管理員還可以完全封鎖更新,因此使用者仍會看到模態視窗,但只有取消按鈕。
模態標題和模態內容可以透過選項頁面進行管理員設定。
請注意,我們不建議不更新外掛。您仍然應該盡快更新所有東西。只要在版本庫中進行更新,並將更改推送到伺服器即可。
外掛標籤
開發者團隊
② 後台搜尋「Protect Version Controlled Updates」→ 直接安裝(推薦)
原文外掛簡介
This plugin is built to be used on production servers which are version-controlled with Git. If plugins are updated directly on production, they can get out of sync with the repo, and later pushes to the server might “roll back” plugin updates which weren’t committed to the repo.
Users who try to update a plugin via the Plugins screen will get a modal window asking for confirmation. Admins can also block updates entirely, so users will still get the modal window but will only have a cancel button.
The modal title and modal content are admin-configurable through the options page.
Please understand, we’re not advocating not updating plugins. You should still update all the things with the quickness. Just do it in the repo and push the changes to the server.
