当サイト、Codex 日本語版は今後積極的な更新は行わない予定です。後継となる新ユーザーマニュアルは、https://ja.wordpress.org/support/ にあります。
万が一、当サイトで重大な問題を発見した際などは、フォーラムWordSlack #docs チャンネルでお知らせください。</p>

「自動バックグラウンド更新の設定」の版間の差分

提供: WordPress Codex 日本語版
移動先: 案内検索
(移動メッセージで置き換え。)
 
(3人の利用者による、間の6版が非表示)
1行目: 1行目:
{{NeedTrans}}
+
このページは https://ja.wordpress.org/support/article/configuring-automatic-background-updates/ へ移動しました。
Automatic background updates were introduced in [[Version_3.7|WordPress 3.7]] in an effort to promote better security, and to streamline the update experience overall. By default, only minor releases – such as for maintenance and security purposes – and translation file updates are enabled.
+
 
+
WordPress には4種類の自動更新機能があります。
+
# コアファイル更新
+
# プラグイン更新
+
# テーマ更新
+
# 翻訳ファイル更新
+
 
+
== コアの更新 ==
+
 
+
Core updates are subdivided into three types:
+
# Core development updates, known as the "bleeding edge"
+
# Minor core updates, such as maintenance and security releases
+
# Major core release updates
+
 
+
By default, automatic updates are only enabled for minor core releases and translation files.
+
 
+
=== <tt>WP_AUTO_UPDATE_CORE</tt> ===
+
 
+
To enable automatic updates for major releases or development purposes, the place to start is with the <tt>WP_AUTO_UPDATE_CORE</tt> constant. Defining this constant one of three ways allows you to blanket-enable, or blanket-disable several types of core updates at once.
+
 
+
<tt>WP_AUTO_UPDATE_CORE</tt> can be defined with one of three values, each producing a different behavior:
+
* Value of <tt>true</tt> – Development, minor, and major updates are all <strong>enabled</strong>
+
* Value of <tt>false</tt> – Development, minor, and major updates are all <strong>disabled</strong>
+
* Value of <tt>minor</tt> – Minor updates are <strong>enabled</strong>, development, and major updates are <strong>disabled</strong>
+
 
+
=== 微調整用のフィルタ ===
+
 
+
But let's say rather than enabling or disabling all three types of core updates, you want to selectively enable or disable them. That's where the <tt>allow_dev_auto_core_updates</tt>, <tt>allow_minor_auto_core_updates</tt>, and <tt>allow_major_auto_core_updates</tt> filters come in.
+
 
+
There are two shorthand functions built into WordPress that will allow you to enable or disable specific types of core updates with single lines of code. They are [[Function_Reference/__return_true|__return_true]] and [[Function_Reference/__return_false|__return_false]]. Here are some example filters:
+
 
+
To specifically <em>enable</em> development (nightly) updates, use the following:
+
<pre>add_filter( 'allow_dev_auto_core_updates', '__return_true' );</pre>
+
 
+
To specifically <em>disable</em> minor updates, use the following:
+
<pre>add_filter( 'allow_minor_auto_core_updates', '__return_false' );</pre>
+
 
+
To specifically <em>enable</em> major updates, use the following:
+
<pre>add_filter( 'allow_major_auto_core_updates', '__return_true' );</pre>
+
 
+
== プラグイン&テーマ更新 ==
+
 
+
Automatic plugin and theme updates are disabled by default. To enable them, you can leverage the <tt>auto_update_$type</tt> filter, where <tt>$type</tt> would be replaced with "plugin" or "theme".
+
 
+
To enable automatic updates for plugins, use the following:
+
<pre>add_filter( 'auto_update_plugin', '__return_true' );</pre>
+
 
+
To enable automatic updates for themes, use the following:
+
<pre>add_filter( 'auto_update_theme', '__return_true' );</pre>
+
 
+
== 翻訳の更新 ==
+
 
+
Automatic translation file updates are already enabled by default, the same as minor core updates.
+
 
+
To disable translation file updates, use the following:
+
<pre>add_filter( 'auto_update_translation', '__return_false' );</pre>
+
 
+
== 自動更新を無効にする ==
+
 
+
The core developers made a conscious decision to enable automatic updates for minor releases and translation files out of the box. Going forward, this will be one of the best ways to guarantee your site stays up to date and secure and, as such, disabling these updates is strongly discouraged.
+
 
+
=== コアファイル更新 ===
+
 
+
You can specifically disable all core-type updates by leveraging the <tt>auto_update_$type</tt> filter, where <tt>$type</tt> would be replaced with "core".
+
 
+
To disable all core-type updates only, use the following:
+
<pre>add_filter( 'auto_update_core', '__return_false' );</pre>
+
 
+
=== すべての更新 ===
+
 
+
To completely disable all types of automatic updates, core or otherwise, add the following to your wp-config.php file:
+
 
+
<pre>define( 'AUTOMATIC_UPDATER_DISABLED', true );</pre>
+
 
+
To be safe, you should also add the following to a custom plugin or your theme's functions.php file:
+
 
+
<pre>add_filter( 'automatic_updater_disabled', '__return_true' );</pre>
+
 
+
{{原文|Configuring Automatic Background Updates|137359}}<!-- 2013-10-24T19:35:47 Mamun155 版 -->
+
[[Category:設置]]
+
 
+
[[en:Configuring Automatic Background Updates]]
+

2021年8月29日 (日) 14:50時点における最新版

このページは https://ja.wordpress.org/support/article/configuring-automatic-background-updates/ へ移動しました。