Linux 软件免费装

Control Live Changes

开发者 gyrus
更新时间 2012年8月19日 19:43
捐献地址: 去捐款
PHP版本: 3.0 及以上
WordPress版本: 3.4.1

标签

disable updates git upgrades

下载

0.1 0.2 0.2.1 0.2.2

详情介绍:

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: 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.

安装:

  1. Upload the control-live-changes directory into the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. If necessary, define constants in wp-config.php to override the plugin defaults - see the Description for details. NOTE: Instead of the above, you may want to drop the control-live-changes.php file into the /wp-content/mu-plugins/ directory to ensure that no one deactivates this plugin!

更新日志:

0.2.2 0.2.1 0.2 0.1