昨天晚上看见Typecho1.2发布了,今天给更新了一下,按照官方的文档升级步骤,删除下方文件夹以及文件
/admin/
/var/
/index.php
/install.php
/var/
/index.php
/install.php
然后把最新1.2版本的以上文件上传后访问admin后台点击完成升级按钮即可完成升级,但是我访问/admin显示空白,访问/admin/welcome.php之后点击完成升级后升级才完成,首页也可以正常访问,但是后台首页提示当前版本1.2,最新版本1.2,让我们升级。
解决办法如下,修改admin/index.php的135行if内修改为
function applyUpdate(update) {
if (update.latest != update.current) {
$('<div class="update-check message error"><p>'
+ '<?php _e('您当前使用的版本是 %s'); ?>'.replace('%s', update.current) + '<br />'
+ '<strong><a href="' + update.link + '" target="_blank">'
+ '<?php _e('官方最新版本是 %s'); ?>'.replace('%s', update.latest) + '</a></strong></p></div>')
.insertAfter('.typecho-page-title').effect('highlight');
}
}