Title: Control Live Changes
Author: Steve Taylor
Published: <strong>2012年4月30日</strong>
Last modified: 2012年8月19日

---

プラグインを検索

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

![](https://s.w.org/plugins/geopattern-icon/control-live-changes.svg)

# Control Live Changes

 作者: [Steve Taylor](https://profiles.wordpress.org/gyrus/)

[ダウンロード](https://downloads.wordpress.org/plugin/control-live-changes.0.2.2.zip)

 * [詳細](https://ja.wordpress.org/plugins/control-live-changes/#description)
 * [レビュー](https://ja.wordpress.org/plugins/control-live-changes/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/control-live-changes/#installation)
 * [開発](https://ja.wordpress.org/plugins/control-live-changes/#developers)

 [サポート](https://wordpress.org/support/plugin/control-live-changes/)

## 説明

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](https://github.com/gyrus/Control-Live-Changes).

## インストール

 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!

## 評価

このプラグインにはレビューがありません。

## 貢献者と開発者

Control Live Changes はオープンソースソフトウェアです。以下の人々がこのプラグイン
に貢献しています。

貢献者

 *   [ Steve Taylor ](https://profiles.wordpress.org/gyrus/)

[“Control Live Changes” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/control-live-changes)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/control-live-changes/)
するか、[SVN リポジトリ](https://plugins.svn.wordpress.org/control-live-changes/)
をチェックするか、[開発ログ](https://plugins.trac.wordpress.org/log/control-live-changes/)
を [RSS](https://plugins.trac.wordpress.org/log/control-live-changes/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 0.2.2

 * Improved screen checking for plugins and theme pages

#### 0.2.1

 * Added tests for constants that might already be defined

#### 0.2

 * Improved disabling functionality by using the `map_meta_cap` filter

#### 0.1

 * First version

## メタ

 *  バージョン **0.2.2**
 *  最終更新日 **14年前**
 *  有効インストール数 **10未満**
 *  WordPress バージョン ** 3.0またはそれ以降 **
 *  検証済み最新バージョン: **3.4.2**
 *  言語
 * [English (US)](https://wordpress.org/plugins/control-live-changes/)
 * タグ
 * [disable](https://ja.wordpress.org/plugins/tags/disable/)[git](https://ja.wordpress.org/plugins/tags/git/)
   [updates](https://ja.wordpress.org/plugins/tags/updates/)[upgrades](https://ja.wordpress.org/plugins/tags/upgrades/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/control-live-changes/advanced/)

## 評価

レビューはまだ送信されていません。

[Your review](https://wordpress.org/support/plugin/control-live-changes/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/control-live-changes/reviews/)

## 貢献者

 *   [ Steve Taylor ](https://profiles.wordpress.org/gyrus/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/control-live-changes/)

## 寄付

このプラグインが今後も改善できるよう応援しませんか ?

 [ このプラグインに寄付 ](http://www.babyloniantimes.co.uk/index.php?page=donate)