前言介紹
- 這款 WordPress 外掛「Control Live Changes」是 2012-04-29 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2012-08-19,距離現在已有 4641 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
gyrus |
外掛標籤
git | disable | updates | upgrades |
內容簡介
這個外掛源於客戶要求,他們透過 Beanstalk 上的 Git 存儲庫管理許多 WordPress 網站。為了減小存儲庫的大小,核心 WP 文件沒有被列入存儲庫,但插件和主題是有的。當然,在將 WP 升級到生產服務器之前,它也在本地開發和遠程暫存服務器上進行了測試。但由於插件和主題在存儲庫中,理想情況下,它們應該在本地進行升級進行測試,然後推送到 Beanstalk 上。然後 Beanstalk 將更改部署到暫存服務器,再到生產服務器。
為了幫助維護這個工作流程,該外掛測試環境是否為本地環境(檢查 WP_LOCAL_DEV 或在 $_SERVER['HTTP_HOST'] 中搜索 “localhost”)。如果環境不是本地的,則禁用插件和主題的安裝、編輯和升級。
以下常數可以在 wp-config.php 中定義,以覆蓋默認值:
SLT_CLC_LOCAL_STRING – 在 $_SERVER['HTTP_HOST'] 中搜索的字符串,表示本地開發環境。默認值:"localhost"
SLT_CLC_DISABLE_REMOTE_CORE_UPGRADES – 默認值:false
SLT_CLC_DISABLE_REMOTE_PLUGIN_THEME_UPGRADES – 這也會禁用通過管理介面編輯插件和主題文件。默認值:true
SLT_CLC_OUTPUT_NOTICES – 是否在升級、主題和插件管理頁面上輸出說明通知。默認值:true
SLT_CLC_CORE_NOTICE – 默認值:"控制即時更改(Control Live Changes)插件目前禁用了此服務器上的核心升級。"
SLT_CLC_PLUGIN_THEME_NOTICE – 默認值:"控制即時更改(Control Live Changes)插件目前禁用了此服務器上的插件和主題升級。"
用於檢查本地環境的替代選擇是 WP_LOCAL_DEV 常數。這是 Mark Jaquith 在定義本地數據庫連接細節的技巧中使用的(http://markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips/)。如果將 WP_LOCAL_DEV 設置為 true,則 SLT_CLC_LOCAL_STRING 檢查就變得無關緊要了。
開發代碼托管在 GitHub 上。
原文外掛簡介
This plugin has arisen from the requirements of a client who manage many of their WordPress sites via Git repositories on Beanstalk. Core WP files are not in the repo, to keep its size down, but plugins and themes are. WP upgrades are of course tested on local development and remote staging servers before being run on the production server. But since plugins and themes are in the repo, ideally they should be upgraded locally for testing, then pushed to Beanstalk. Beanstalk in turn deploys the changes to the staging server, and then the production server.
To help maintain this workflow, this plugin tests if the environment is local or not (checking for WP_LOCAL_DEV or searching for “localhost” in $_SERVER['HTTP_HOST']). If the environment isn’t local, plugin and theme installation, editing and upgrades are disabled.
The following constants can be defined in wp-config.php to override the defaults:
SLT_CLC_LOCAL_STRING – The string to search for in $_SERVER['HTTP_HOST'] that will indicate a local development environment. Default: "localhost"
SLT_CLC_DISABLE_REMOTE_CORE_UPGRADES – Default: false
SLT_CLC_DISABLE_REMOTE_PLUGIN_THEME_UPGRADES – This will also disable editing plugin and theme files via the admin interface. Default: true
SLT_CLC_OUTPUT_NOTICES – Whether to output explanatory notices on the upgrades, themes, and plugins admin pages. Default: true
SLT_CLC_CORE_NOTICE – Default: "Core upgrades are currently disabled on this server by the Control Live Changes plugin."
SLT_CLC_PLUGIN_THEME_NOTICE – Default: "Plugin and theme upgrades are currently disabled on this server by the Control Live Changes plugin."
An alternative to the SLT_CLC_LOCAL_STRING check for a local environment is the WP_LOCAL_DEV constant. This is used by Mark Jaquith in his technique for defining local database connection details in a separate file (http://markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips/). If WP_LOCAL_DEV is set to true, the SLT_CLC_LOCAL_STRING check is made irrelevant.
Development code hosted at GitHub.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Control Live Changes」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
0.1 | 0.2 | 0.2.1 | 0.2.2 | trunk |
延伸相關外掛(你可能也想知道)
暫無相關外掛推薦。