WordPress: Upgrading WordPress:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
第5行: 第5行:
这些是简短的说明,如果你想要更多的,请查看[[WordPress:Upgrading_WordPress_Extended|扩展的升级说明]]。如果你在三步安装时遇到了困难,你也许想回顾一下[[WordPress:Upgrading_WordPress_Extended|安装说明的更多详情]].。
这些是简短的说明,如果你想要更多的,请查看[[WordPress:Upgrading_WordPress_Extended|扩展的升级说明]]。如果你在三步安装时遇到了困难,你也许想回顾一下[[WordPress:Upgrading_WordPress_Extended|安装说明的更多详情]].。


For these instructions, it is assumed that your blog's URL is <code><nowiki>http://example.com/wordpress/</nowiki></code>. Note that during the upgrade process access to your blog may not work for your visitors. You may consider a plugin like [http://wordpress.org/extend/plugins/maintenance-mode/ Maintenance Mode].
对于这些说明,假定是你的博客的URL是<code><nowiki>http://example.com/wordpress/</nowiki></code>. 注意在升级过程中你的博客的浏览者恐怕不能访问你的博客,你可以考虑下象[http://wordpress.org/extend/plugins/maintenance-mode/ Maintenance Mode]的插件


=== Step 0: Before You Get Started ===
=== Step 0: Before You Get Started ===

2008年3月25日 (二) 11:15的版本

Before you get started, make sure you meet the minimum requirements.

Three Step Upgrade 三步更新

这些是简短的说明,如果你想要更多的,请查看扩展的升级说明。如果你在三步安装时遇到了困难,你也许想回顾一下安装说明的更多详情.。

对于这些说明,假定是你的博客的URL是http://example.com/wordpress/. 注意在升级过程中你的博客的浏览者恐怕不能访问你的博客,你可以考虑下象Maintenance Mode的插件

Step 0: Before You Get Started

  • Just in case something goes wrong, make sure you have a backup. WordPress:WordPress_Backups is a comprehensive guide.
  • Deactivate your plugins. A plugin might not be compatible with the new version, so it's nice to check for new versions of them and deactivate any that may cause problems. You can reactivate plugins one-by-one after the upgrade.

Step 1: Replace WordPress files

  1. Get the latest WordPress. Either download and extract it to your computer or download it directly to the server.
  2. Copy the new files to your server, overwriting old files. You may use FTP or shell commands to do so.

NOTE   The wp-content folder requires special handling, as do the plugins and themes folders. You must copy over the contents of these folders, not the entire folder. Copying the entire folder overwrites all your customizations and added content.

Also take care to preserve the wp-config.php file in the root directory, as it contains your database sign-in information. Do note though that usually this will not be a problem since in a new installation the config file will be named wp-config-sample.php.

Step 2: Upgrade your installation

  1. Visit the upgrade page. It will be at a URL like http://example.com/wordpress/wp-admin/upgrade.php. This updates your database to be compatible with the latest code, and before you do this your blog might look funny.

Step 3: Do something nice for yourself

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 upgraded. That's as simple as we can make it without Updating WordPress Using Subversion.

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

Troubleshooting

If anything has gone wrong 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.