Upgrade WordPress 到 2.8.4

Category:Wikipedians who use WordPress
Image via Wikipedia

没有想到, Bug 这么快就被发现,马上有新版本紧急需要更新了。根据前次的升级2.8.1 的思路,写一个脚本来自动升级:

#!/bin/sh
unzip $1
VER=$2
NEWDIR=wordpress-$VER
mv wordpress $NEWDIR
cp blog/.htaccess blog/wp-config.php $NEWDIR
cp -r blog/wp-content/themes/* $NEWDIR/wp-content/themes
rm blog
ln -s $NEWDIR blog

Reblog this post [with Zemanta]