WordPress: Upgrading WordPress:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
第13行: 第13行:
===第一步:替换WordPress文件===
===第一步:替换WordPress文件===


# Get the [http://wordpress.org/download/ latest WordPress]. Either download and extract it to your computer or download it directly to the server.
1. 找到[http://wordpress.org/download/ 最新的WordPress].把它下载并提取到你的电脑或者直接把它下载到你的服务器.
# Copy the new files to your server, overwriting old files. You may use FTP or shell commands to do so.
# Copy the new files to your server, overwriting old files. You may use FTP or shell commands to do so.
2. 将新的文档复制到你的服务器上面并改写旧的文档。你可以使用FTP或者shell命令来执行这个。


<strong>NOTE</strong>&nbsp;&nbsp;  The <code>wp-content</code> folder requires special handling, as do the  <code>plugins</code> and <code>themes</code> folders. You must copy over the <em>contents</em>  
<strong>NOTE</strong>&nbsp;&nbsp;  The <code>wp-content</code> folder requires special handling, as do the  <code>plugins</code> and <code>themes</code> folders. You must copy over the <em>contents</em>  
of these folders, not the entire folder. Copying the entire folder overwrites  
of these folders, not the entire folder. Copying the entire folder overwrites  
all your customizations and added content.  
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'''.
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'''.



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

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

三步更新

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

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

第0步:在你开始之前

  • 为防止什么事情出现了错误,确定自己有一个文件备份。WordPress-文件备份是一个综合的向导
  • 停止使用你的插件。一个插件也许不适合于新版本,因此检查一下它们的新版本,关闭那些可能引起麻烦的插件。在升级过后,你可以一个一个的再重新启动插件。

第一步:替换WordPress文件

1. 找到最新的WordPress.把它下载并提取到你的电脑或者直接把它下载到你的服务器.

  1. Copy the new files to your server, overwriting old files. You may use FTP or shell commands to do so.

2. 将新的文档复制到你的服务器上面并改写旧的文档。你可以使用FTP或者shell命令来执行这个。

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.