Web サーバのコンテンツは、基本 subversion リポジトリから svn co したものを利用しています。しかし、wordpress を svn で管理している環境で wordpress の管理UIからプラグインを更新すると wp-content/plugins/
[[email protected] 1.0.x]# svn status
~ wp-content/plugins/wp-multibyte-patch
~ wp-content/upgrade
事象:
・Web サーバ上で新規作成したファイルは svn add で管理対象に含めることができる
・wordpress 上から更新された plugin は svn add で管理対象に含めることができない
対応:
・上記の例では一旦 wp-multibyte-patch フォルダを削除して svn update でリポジトリ上のプラグインを再度取得して復旧する。
・プラグインの更新は wordpress 上から実施せず、プラグインを手動追加する形とする。
感想:
・・・んーなんだか不便だー。.svn フォルダは削除しないようにできないかなぁ。 plugins.php をいじればいいのだろうけど、あまり本体をカスタムしたくはない。
wp にパッチ送ってみようかな。またはこの問題を回避できるようなプラグインが作れるかなぁ。試していないが、テーマでもおそらく同じことが発生すると推察されます。
なんか、良い方法があったらコメントくださいませ。利用している wordpress のバージョンは 3.4.2 です。
[[email protected] 1.0.x]# svn status
~ wp-content/plugins/wp-multibyte-patch
~ wp-content/upgrade
[[email protected] 1.0.x]# rm -rf wp-content/plugins/wp-multibyte-patch/
[[email protected] 1.0.x]# rm -rf wp-content/upgrade/
[[email protected] 1.0.x]# svn update
[email protected]'s password:
A wp-content/plugins/wp-multibyte-patch
A wp-content/plugins/wp-multibyte-patch/ext
A wp-content/plugins/wp-multibyte-patch/ext/ja
A wp-content/plugins/wp-multibyte-patch/ext/ja/admin.css
A wp-content/plugins/wp-multibyte-patch/ext/ja/class.php
A wp-content/plugins/wp-multibyte-patch/wpmp-config-sample-ja.php
A wp-content/plugins/wp-multibyte-patch/wp-multibyte-patch.php
A wp-content/plugins/wp-multibyte-patch/languages
A wp-content/plugins/wp-multibyte-patch/languages/wp-multibyte-patch.pot
A wp-content/plugins/wp-multibyte-patch/languages/wp-multibyte-patch-ja.mo
A wp-content/plugins/wp-multibyte-patch/languages/wp-multibyte-patch-ja.po
A wp-content/plugins/wp-multibyte-patch/wpmp-load.php
A wp-content/plugins/wp-multibyte-patch/readme.txt
A wp-content/plugins/wp-multibyte-patch/js
A wp-content/plugins/wp-multibyte-patch/js/wplink.js
A wp-content/plugins/wp-multibyte-patch/js/word-count.dev.js
A wp-content/plugins/wp-multibyte-patch/js/word-count.js
A wp-content/plugins/wp-multibyte-patch/js/wplink.dev.js
A wp-content/upgrade
リビジョン 47 に更新しました。
[[email protected] 1.0.x]# svn status
[[email protected] 1.0.x]#