WordPress:Migrating Plugins and Themes to 2.2

来自站长百科
Xxf3325讨论 | 贡献2008年9月18日 (四) 14:08的版本 (新页面: ==Introduction== When a new major version of WordPress is released, such as WordPress 2.1 or 2.2, you may find that your Themes and Plugins no longer work the way you are used to. It cou...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航、​ 搜索

Introduction

When a new major version of WordPress is released, such as WordPress 2.1 or 2.2, you may find that your Themes and Plugins no longer work the way you are used to. It could be that they are completely broken, because something in WordPress that was fundamental to them changed, but it's also possible that you can get them working again by updating some settings, or maybe just a small edit.

This article is part of a series on WordPress:Migrating Plugins and Themes. It covers changes between WordPress Version 2.1 and WordPress:Version 2.2, and what you need to do to Plugins and Themes to get them working in Version 2.2.

If the Theme or Plugin you are using was developed by someone else, there are several places to look for information:

If you are the author of your Theme or Plugin, or if you have modified or customized your Theme, then this article will help you upgrade your Theme/Plugin for 2.2. If your Theme or Plugin is distributed publicly, after getting it working you may want to add it to the Compatibility lists above, so your users will know it is working and which version they should be running.

Migrating from 2.1 to 2.2

The main change of importance to Plugins and Themes in WordPress:Version 2.2 was the introduction of WordPress Widgets as part of the core of WordPress. (Widgets are small pieces of WordPress output, such as category lists, archive lists, and search forms, which you can put into the sidebar(s) of your blog.)

If you want to use Widgets in a Theme that was developed prior to WordPress 2.2, you can find out how to update your theme in this article on Widgetizing Themes.

If you want some output that your Plugin generates to be displayed in a sidebar Widget, you can find out how in this article on Widgetizing Plugins, and you may also find the Widgets API article useful.


Insert non-formatted text here