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

WordPress のアップグレード

提供: WordPress Codex 日本語版
2013年10月30日 (水) 09:02時点におけるNao (トーク | 投稿記録)による版 (最新版に更新して途中まで翻訳。)

移動先: 案内検索

このページ「WordPress のアップグレード」は未翻訳です。和訳や日本語情報を加筆してくださる協力者を求めています

注: アップグレード処理は、メインの WordPress インストールを含むすべてのファイルとフォルダに影響を与えます。これは WordPress の動作に必要なコアファイルすべてを含みます。こういったファイルに変更を加えた場合、変更が消えてしまいますので注意してください。

WordPress を常に最新版バージョン 5.3)にアップグレードするようにしてください。新バージョンが利用できるようになると、WordPress の管理画面に更新メッセージが表示されます。このメッセージ内のリンクをクリックして更新画面へ移動しましょう。


WordPress のバックアップ

スタートする前にサイトをバックアップすることをおすすめします。何か問題が発生しても簡単にサイトを元に戻せるからです。完全な手順についてはWordPress のバックアップドキュメンテーションをご覧ください。


WordPress 3.7以降では, マイナー・セキュリティアップグレードに関しては何もする必要がありません。ほとんどのサイトは自動的にこういった更新を適用できるようになっています。FTP 情報を毎回入力する必要なくワンクリック更新を実行できる環境ならおそらく自動更新可能ですが、詳しくは Background Upgrade Tester プラグインで確認してみてください。自動バックグラウンド更新は 3.7 から 3.7.1、3.7.2 などへのアップグレードの際に行われますが、メジャーアップグレードに関しては引き続き「いますぐ更新」ボタンをクリックする必要があります。

参照: 自動バックグラウンド更新の設定


バージョン 2.7 以降の WordPress にはワンクリック更新機能が含まれています。新バージョン告知のメッセージがあればそれをクリックするか、メニューから「ダッシュボード → 更新」画面に移動して実行できます。 「WordPress の更新」画面で「いますぐ更新」ボタンをクリックすると処理が開始されます。他には何もしなくても、完了すれば最新版の WordPress が利用できるようになります。


(a) ファイルの所有権: all of your WordPress files must be owned by the user under which your web server executes. In other words, the owner of your WordPress files must match the user under which your web server executes. The web server user (named "apache", "web", "www", "nobody", or some such) is not necessarily the owner of your WordPress files. Typically, WordPress files are owned by the ftp user which uploaded the original files. If there is no match between the owner of your WordPress files and the user under which your web server executes, you will receive a dialog box asking for "connection information", and you will find that no matter what you enter in that dialog box, you won't be able to update using the "Update Now" button.

(b) ファイルのパーミッション: all of your WordPress files must be either owner writable by, or group writable by, the user under which your Apache server executes.

On shared hosts, WordPress files should specifically NOT be owned by the web server. If more then one user owns different files in the install (because of edits made by deleting and re-uploading of files via different accounts, for example), the file permissions need to be group writable (for example, 775 and 664 rather then the default 755 and 644). File permissions (in general) should be adjusted as appropriate for the server environment (the shared host RackSpace CloudSites for example recommends 700 and 600 for a single ftp user, or 770 and 660 for multiple ftp users). See the file permission section for more (some files and folders require stricter permissions).

If you see a "failed update" nag message, delete the file .maintenance from your WordPress directory using FTP. This will remove the "failed update" nag message.

If the one-click upgrade doesn't work for you, don't panic! Just try a manual update.


These are the short instructions, if you want more check out the extended upgrade instructions. If you experience problems with the Three Step Update, you may want to review the more detailed upgrade instructions

For these instructions, it is assumed that your blog's URL is http://example.com/wordpress/.

ステップ 1: WordPress ファイルの入れかえ

  1. Get the latest WordPress zip (or tar.gz) file.
  2. Unpack the zip file that you downloaded.
  3. Deactivate plugins.
  4. Delete the old wp-includes and wp-admin directories on your web host (through your FTP or shell access).
  5. Using FTP or your shell access, upload the new wp-includes and wp-admin directories to your web host, overwriting old files.
  6. Upload the individual files from the new wp-content folder to your existing wp-content folder, overwriting existing files. Do NOT delete your existing wp-content folder. Do NOT delete any files or folders in your existing wp-content directory (except for the one being overwritten by new files).
  7. Upload all new loose files from the root directory of the new version to your existing wordpress root directory.

NOTE - you should replace all the old WordPress files with the new ones in the wp-includes and wp-admin directories and sub-directories, and in the root directory (such as index.php, wp-login.php and so on). Don't worry - your wp-config.php will be safe.

Be careful when you come to copying the wp-content directory. You should make sure that you only copy the files from inside this directory, rather than replacing your entire wp-content directory. This is where your themes and plugins live, so you will want to keep them. If you have customized the default or classic themes without renaming them, make sure not to overwrite those files, otherwise you will lose your changes. (Though you might want to compare them for new features or fixes..)

Lastly you should take a look at the wp-config-sample.php file, to see if any new settings have been introduced that you might want to add to your own wp-config.php.

ステップ 1.5: .maintenance ファイルの削除

If you're upgrading manually after a failed auto-upgrade, delete the file .maintenance from your WordPress directory using FTP. This will remove the "failed update" nag message.

ステップ 2: インストールの更新

Visit your main WordPress admin page at /wp-admin. You may be asked to login again. If a database upgrade is necessary at this point, WordPress will detect it and give you a link to a URL like http://example.com/wordpress/wp-admin/upgrade.php. Follow that link and follow the instructions. This will update your database to be compatible with the latest code. You should do this as soon as possible after step 1.

ステップ 3: 自分にご褒美を

If you have caching enabled, your changes will appear to users more immediately if you clear the cache at this point (and if you don't, you may get confused when you see the old version number in page footers when you check to see if the upgrade worked).

Your WordPress installation is successfully updated. That's as simple as we can make it without Updating WordPress Using Subversion.

Consider rewarding yourself with a blog post about the update, reading that book or article you've been putting off, or simply sitting back for a few moments and letting the world pass you by.


Your update is now complete, so you can go in and enable your Plugins again. If you have issues with logging in, try clearing cookies in your browser.


If anything has gone wrong, then the first thing to do is go through all the steps in our extended upgrade instructions. That page also has information about some of the most common problems we see.

If you experience problems after the upgrade, you can always restore your backup and replace the files with ones from your previous version from the [http:/ja.wordpress.org/download/release-archive/ release archive].


最新英語版: WordPress Codex » Updating WordPress 最新版との差分