WordPress2.1.3=>2.2,真艰难

花了不少工夫总算把WordPress从2.1.3升级到了2.2.0。

按官方所说备份自己修改的文件,上传新文件后运行wp-admin/install.php,看起来一切都进行得很好,可是噩梦开始了。。

前台进不去,白屏,无论是页面还是日志还是评论,但后台可以进。

很显然是theme的问题,我这么想着,但奇怪的是在我本地服务器上进行的升级非常完美。这两个服务器唯一不同的就是字符集。但怎么解决呢?

好在数据库还有8M左右的空间,改wp_config.php上传,新建了个wordpress,完美,把表一一拷过去,发现问题出在wp_options这张表里。把新表拷到原表里去,又可以进首页了。只是一些小的设置需要更新。

2.2.0的新特性表:(http://wordpress.org/development/2007/05/wordpress-22/)

May 16, 2007

WordPress 2.2

By Matt. Filed under Releases.

On behalf of the entire WordPress team, I’m proud and excited to announce the immediate availability of version 2.2 “Getz” for download. This version includes a number of new features, most notably Widgets integration, and over two hundred bug fixes. It’s named in honor of tenor saxophonist Stan Getz.

Goodies:

  • WordPress Widgets allow you to easily rearrange and customize areas of your weblog (usually sidebars) with drag-and-drop simplicity. This functionality was originally available as a plugin Widgets are now included by default in the core code, significantly cleaned up, and enabled for the default themes.
  • Full Atom support, including updating our Atom feeds to use the 1.0 standard spec and including an implementation of the Atom Publishing API to complement our XML-RPC interface.
  • A new Blogger importer that is able to handle the latest version of Google’s Blogger product and seamlessly import posts and comments without any user interaction beyond entering your login.
  • Infinite comment stream, meaning that on your Edit Comments page when you delete or spam a comment using the AJAX links under each comment it will bring in another comment in the background so you always have 20 items on the page. (I know it sounds geeky, but try it!)
  • We now protect you from activating a plugin or editing a file that will break your blog.
  • Core plugin and filter speed optimizations should make everything feel a bit more snappy and lighter on your server.
  • We’ve added a hook for WYSIWYG support in a future version of Safari.

In addition there were also dozens of UI and accessibility improvements, ranging from more concise wording around options and links to things like a view and preview link above the content box when you’re editing a post or page.

Developer Features:

We also improved a great deal under the hood that hopefully you’ll never notice, but if you’re a developer for the WP platform it provides a lot to sink your teeth into. Here is a sampling:

  • A new set of WordPress-specific XML-RPC APIs that allow for editing pages, setting categories, and much more.
  • We now use jQuery for a number of internal functions, and hope to transition all of our JS to use it. (We still need volunteers for this.)
  • Comment feeds now support multiple formats, including Atom.
  • Our internal mail functions now use phpMailer, which allows for things like SMTP support.
  • You can now set database collation and character set in your config file.
  • You can also hardcode your site and WP URL in the config file, overriding the values in the DB.
  • Finally we’ve increased the inline documentation of a number of functions inside of WP, which should help you navigate those parts of the code.

If you’d like an in-depth look at everything that changed, here is a list of all 244 closed tickets in our bug tracker and you can use this link to see what files and lines of code changed. (It was a lot!)

不过对这些更新还没有什么感觉,最大的感觉就是最新日志又回到那种我不喜欢的样子了,但函数没变,说明2.2确实把sidebar widget真正集成到了内核里,哦哦,多棒的感觉。

Related posts

2 Responses to “WordPress2.1.3=>2.2,真艰难”


  1. 1 (沙发) Jerry

    发现2.2里的widget函数都放在了wp-includes/widgets.php里,而且都加上了wp_的官方前缀,不像2.1.3里的龟缩在/wp-content/plugins/widgets/widgets.php里。。。照原样修改一下就可以啦

  2. 2 (板凳) Jerry

    今天在改设置,又出现了白屏,好在是在改设置!
    终于发现为什么会白屏了
    在管理-选项-阅读里面有一个复选框:
    如果浏览器要求,则 WordPress 应当在传输前压缩文章 (gzip)
    千万不要选上,就这么简单。
    害我两天不能写日志。。。

Leave a Reply