// 添加文章页展开收缩JS效果
  1. 获取最新的WordPress zip(或tar.gz)文件。(建议通过shell操作,虽然也可以下载到本地,然后上传,不过毕竟直接在服务器端操作更快,下载+解压命令: wget https://wordpress.org/latest.tar.gz && tar zxf latest.tar.gz 然后以下操作可继续用shell指令操作,新手可通过WinSCP进行可视化操作。)
  2. 解压缩您下载的zip文件。
  3. 停用插件。
  4. 删除旧的wp-includeswp-admin您的虚拟主机上的目录(通过你的FTP或shell访问)。
  5. 使用FTP或shell访问,将新目录wp-includeswp-admin目录上传到Web主机,代替以前删除的目录。
  6. 将单个文件从新wp-content文件夹上载到现有wp-content文件夹,覆盖现有文件。请勿删除现有wp-content文件夹。不要删除现有wp-content目录中的任何文件或文件夹(新文件覆盖的文件或文件夹除外)。
  7. 将所有新的松散文件从新版本的根目录上传到现有的wordpress根目录。
  8. 打开网站,启用插件。
  9. 删除下载的更新文件夹和压缩包。 DONE!

注意 – 您应该将所有旧的WordPress文件替换为wp-includeswp-admin目录和子目录中的新文件以及根目录(例如index.php,wp-login.php等)。别担心 – 你的wp-config.php会很安全。

复制wp-content目录时要小心。您应该确保只复制此目录中的文件,而不是替换整个wp-content目录。这是您的主题和插件所在的位置,因此您需要保留它们。如果您已自定义默认或经典主题而不重命名,请确保不要覆盖这些文件,否则您将丢失更改。(虽然您可能希望将它们与新功能或修复进行比较..)

  1. Get the latest WordPress zip (or tar.gz) file.
  2. // wget https://wordpress.org/latest.tar.gz && tar xzf latest.tar.gz
  1. Unpack the zip file that you downloaded.
  2. Deactivate plugins.
  3. Delete the old wp-includes and wp-admin directories on your web host (through your FTP or shell access).
  4. Using FTP or your shell access, upload the new wp-includes and wp-admin directories to your web host, in place of the previously deleted directories.
  5. 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).
  6. 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..)

分类: Wordpress

发表评论

%d 博主赞过: