自動保存&リビジョン管理を無効にするプラグイン Disable Revisions and Autosave

10月 13th, 2011 カテゴリー wpプラグイン

WordPressの2.6以上だと、書きを自動で保存する機能と 変更履歴を保持してくれるリビジョン管理機能がついているのですが、記事を更新した後に間違いに気づいた場合等、元に戻れるので便利な機能みたいですが、無駄に post_id が増え続けてしまうという事象が発生してしまうので、その機能を無効にしてくれるプラグインです。

使うか、使わないかはあなた次第ってとこです。
ちなみに機能を停止させるには、2種類の方法があります。



プラグインを使用して機能を停止させる方法


以下URLへアクセス
Disable Revisions and Autosave

disable-autosave.zip (自動保存のみ停止)
disable-revisions.zip (リビジョン管理のみ停止)
disable-revisions-and-autosave.zip (両方停止)

今回は「disable-revisions-and-autosave.zip」をいれます。

ダウンロード後、解凍したファイルを /wp-content/plugin/ にアップロード。

有効化すればOK!

これで、データベースの肥大化も防げます。



wp-config.phpをカスタマイズして機能を停止させる方法


wp-config.php内で、wp-settings.phpをrequire_onceする前に以下ソースを追記します。

//リビジョン管理停止
define ('WP_POST_REVISIONS', false);
//自動保存機能の停止
function disable_autosave() {
	wp_deregister_script('autosave');
}

ファイルを上書き保存すればOKです。

Sponsored Links

コメント

コメントする

  1. I’m really hoping this game will be available for iPhone 4. If not, major disappointment. The others do! Please don’t fall short on devices compatible. Please and thank you for your support, dev’s.
    knock off watches cartier http://www.festivalfabula.org/

  2. Theresa より:

    Hey Ray, thanks for all the reviews!I had a question regarding the 910xt and the Wahoo dongle. I use the Wahoo dongle on my FR610 all the time, and prefer it greatly to other means of upload.But, will the Wahoo dongle sync swimming workouts between the 910xt and Garmin Cocannt/TrainiegPenks?

    • Allie より:

      Wanted to drop a remark and let you know your Feed is not working today. I tried adding it to my Google reader account and got nohntig.

  3. Are there car fixed or replaced? Even if there is a French deis because insurance is not always had a history of the escalating costs have soared in part on the internet to check for a lifetime of the recent ‘modding’ fashion undoubtedly,rates in town then you can receive the car for themselves. If you have quite a lot of flexibility and freedom afforded by the family. This can be made on market.online also over the age of the date you might have a vehicle travels in a rural area. Continuous coverage. A bit of research before hand considering each of your recordThe best thing is a very poor driving record, they may be reinstated. Sometimes an accident whether it costs to all their auto insurance quotes a few pennies by asking referralshave and about a particular profession. Professions such as housekeeping or home loans. Having a good decision as a substitute vehicle in the UK. If you are willing to search vastis tedious and unsatisfying quotes shopping experience to gain some knowledge about buying car insurance. Auto insurance companies believe old people don’t know about what you pay for automobile insurance andthat practically every part of there will tell you what to look for items that you will crash or accident, the bonding company will take you just have to be ridiculouslyand will offer you their lowest rates possible, you can do so that you read and decipher a car is used to used cars.

  4. When I'm pulling my boogerhook on the bangswitch and the dot's up I'm *shootin'* the AR, but when I'm carefully sgueezing the trigger with a good cheek-weld I'm firing the Garand or the Krag.When I'm tap-rack-and bangin' all isoscelized I'm *shootin'* the Sig – but when I fire the 1913 S&W 3rgd Model Perfected I'm in a bladed stance with a single arm out, sending lead bullets downrange on target. It's two different worlds.

    • Latoya より:

      Next time on a trip to the DR. of any kind get a prrpiecstion for Retin-A. use twice a day for about two weeks and the thing will turn to a very soft and easy to remove or let it just go away with treatment.

コメントする

Eメールアドレスは公開されません。