WordPress: Migrating Plugins and Themes to 2.2:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
无编辑摘要
 
第1行: 第1行:
==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.
发行一个新的主要版本的WordPress,如WordPress2.1或者2.2,你可能发现你的主题和插件不再向以前那样运行。可能因为插件和主题完全毁坏了,因为WordPress中对它们而言至关重要的部分更改了,但是通过上传一些设置,或者只是简单地编辑一下,你可能能够使得这些插件和主题正常运行。
发行一个新的主要版本的WordPress,如WordPress2.1或者2.2,你可能发现你的主题和插件不再向以前那样运行。可能因为插件和主题完全毁坏了,因为WordPress中对它们而言至关重要的部分更改了,但是通过上传一些设置,或者只是简单地编辑一下,你可能能够使得这些插件和主题正常运行。
This article is part of a series on [[WordPress:Migrating Plugins and Themes]]. It covers changes between WordPress [http://wordpress.org/development/2007/01/ella-21/ 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.


这篇文章是[[WordPress:Migrating Plugins and Themes|升级插件和主题]]系列的一部分。包括WordPress [http://wordpress.org/development/2007/01/ella-21/ 2.1版本]和[[WordPress:Version 2.2|2.2版本]]之间的变化,你需要做的就是,使得插件和主题能够在2.2版本中运行。
这篇文章是[[WordPress:Migrating Plugins and Themes|升级插件和主题]]系列的一部分。包括WordPress [http://wordpress.org/development/2007/01/ella-21/ 2.1版本]和[[WordPress:Version 2.2|2.2版本]]之间的变化,你需要做的就是,使得插件和主题能够在2.2版本中运行。
If the Theme or Plugin you are using was developed by someone else, there are several places to look for information:


如果你使用的主题或者插件是其他人开发的,你可以从下面的这些地点查找信息:
如果你使用的主题或者插件是其他人开发的,你可以从下面的这些地点查找信息:
* Your Plugin or Theme's home page


*你的插件或者主题的主页
*你的插件或者主题的主页
* WordPress 2.2 [[WordPress:Plugins/Plugin_Compatibility/2.2|Plugin Compatibility List]]
* WordPress 2.2 [[WordPress:Plugins/Plugin_Compatibility/2.2|插件兼容性列表]]
* WordPress 2.2 [[WordPress:Plugins/Plugin_Compatibility/2.2|插件兼容性列表]]
* WordPress 2.2 [[WordPress:Themes/Theme_Compatibility/2.2|Theme Compatibility List]]
* WordPress 2.2 [[WordPress:Themes/Theme_Compatibility/2.2|主题兼容性列表]]
* WordPress 2.2 [[WordPress:Themes/Theme_Compatibility/2.2|主题兼容性列表]]
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.


如果你是主题或者插件的作者,或者如果你更改或者自定义了主题,那么这篇文章会帮助你将主题/插件升级到2.2。如果你的主题或者插件是公开发行的版本,使得插件和主题运行之后,你希望将插件或者主题添加到上述的兼容性列表,这样你的用户会了解这些插件或者主题可以运行以及应该在哪个版本上运行。
如果你是主题或者插件的作者,或者如果你更改或者自定义了主题,那么这篇文章会帮助你将主题/插件升级到2.2。如果你的主题或者插件是公开发行的版本,使得插件和主题运行之后,你希望将插件或者主题添加到上述的兼容性列表,这样你的用户会了解这些插件或者主题可以运行以及应该在哪个版本上运行。
==Migrating from 2.1 to 2.2==
==从2.1升级到2.2==
==从2.1升级到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.)
[[WordPress:Version 2.2|2.2版本]]中插件和主题的主要变化在于引进WordPress Widgets作为WordPress核心的一部分。(Widgets是WordPress输出的部分内容,如类别列表,归档列表,和搜索表格,你可以将这些内容放置到你的博客的边栏上。)
[[WordPress:Version 2.2|2.2版本]]中插件和主题的主要变化在于引进WordPress Widgets作为WordPress核心的一部分。(Widgets是WordPress输出的部分内容,如类别列表,归档列表,和搜索表格,你可以将这些内容放置到你的博客的边栏上。)
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 [http://automattic.com/code/widgets/themes/ this article on Widgetizing Themes].


如果你希望那个将Widgets用在WordPress2.2版本之前的某个版本的主题中,你可以在[http://automattic.com/code/widgets/themes/ 关于Widgetizing 主题文章]中找出怎样更新你的主题。
如果你希望那个将Widgets用在WordPress2.2版本之前的某个版本的主题中,你可以在[http://automattic.com/code/widgets/themes/ 关于Widgetizing 主题文章]中找出怎样更新你的主题。
If you want some output that your Plugin generates to be displayed in a sidebar Widget, you can find out how in [http://automattic.com/code/widgets/plugins/ this article on Widgetizing Plugins], and you may also find the [http://automattic.com/code/widgets/api/ Widgets API] article useful.


如果你希望你的插件输入的一些内容显示在边栏Widgets上,你可以在[http://automattic.com/code/widgets/plugins/ 关于Widgetizing插件的文章]中了解怎样操作,而且你可能发现[http://automattic.com/code/widgets/api/ Widgets API],这篇文章也很有用。
如果你希望你的插件输入的一些内容显示在边栏Widgets上,你可以在[http://automattic.com/code/widgets/plugins/ 关于Widgetizing插件的文章]中了解怎样操作,而且你可能发现[http://automattic.com/code/widgets/api/ Widgets API],这篇文章也很有用。
第50行: 第20行:
----
----


<nowiki>Insert non-formatted text here</nowiki>
<nowiki>在这里插入没有格式的文本</nowiki>




----
----
<nowiki>在这里输入没有格式的文本</nowiki>

2008年9月18日 (四) 17:56的最新版本

介绍[ ]

发行一个新的主要版本的WordPress,如WordPress2.1或者2.2,你可能发现你的主题和插件不再向以前那样运行。可能因为插件和主题完全毁坏了,因为WordPress中对它们而言至关重要的部分更改了,但是通过上传一些设置,或者只是简单地编辑一下,你可能能够使得这些插件和主题正常运行。

这篇文章是升级插件和主题系列的一部分。包括WordPress 2.1版本2.2版本之间的变化,你需要做的就是,使得插件和主题能够在2.2版本中运行。

如果你使用的主题或者插件是其他人开发的,你可以从下面的这些地点查找信息:

如果你是主题或者插件的作者,或者如果你更改或者自定义了主题,那么这篇文章会帮助你将主题/插件升级到2.2。如果你的主题或者插件是公开发行的版本,使得插件和主题运行之后,你希望将插件或者主题添加到上述的兼容性列表,这样你的用户会了解这些插件或者主题可以运行以及应该在哪个版本上运行。

从2.1升级到2.2[ ]

2.2版本中插件和主题的主要变化在于引进WordPress Widgets作为WordPress核心的一部分。(Widgets是WordPress输出的部分内容,如类别列表,归档列表,和搜索表格,你可以将这些内容放置到你的博客的边栏上。)

如果你希望那个将Widgets用在WordPress2.2版本之前的某个版本的主题中,你可以在关于Widgetizing 主题文章中找出怎样更新你的主题。

如果你希望你的插件输入的一些内容显示在边栏Widgets上,你可以在关于Widgetizing插件的文章中了解怎样操作,而且你可能发现Widgets API,这篇文章也很有用。


在这里插入没有格式的文本