WordPress: Developer Documentation:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
(新页面: == Introduction == WordPress believes in keeping it simple, and a lot of thought goes into including new functionality as a part of the "core" WordPress code, in order to keep WordPress f...)
 
无编辑摘要
第3行: 第3行:


You may also wish to consult the [[FAQ Developer Documentation|Developer Documentation FAQ]]
You may also wish to consult the [[FAQ Developer Documentation|Developer Documentation FAQ]]
== 介绍 ==
为了让WordPress保持快速可轻巧,WordPress信仰保持简单,探究大量包含新功能的想法,作为WordPress"核心"代码的一部分。尽管如此,用户经常寻找并使用有附加功能的主题以满足他们的需要。Codex中的这部分为希望修改扩展WordPress或者为WordPress做贡献的人提供了指导和参考。
你可能需要参考[[FAQ Developer Documentation|开发者文档常见问题]]


<div style="clear: both;"></div>
<div style="clear: both;"></div>
第11行: 第17行:


Although the alteration of the downloadable files for WordPress is limited to a few distinct programmers, every WordPress user has the ability to affect change in the core WordPress code, making WordPress highly customizable.</div>
Although the alteration of the downloadable files for WordPress is limited to a few distinct programmers, every WordPress user has the ability to affect change in the core WordPress code, making WordPress highly customizable.</div>
<div style="clear: both;"></div>
<div style="margin:5px; padding:5px; border:2px solid #F22; text-align:center;"><div style="color:#F55; font-size:110%; font-weight:bold;">写在程序代码之前</div>
你可能看到的下面的文章中,编程术语不会使用普通水平的语言为非编程人员进行详细的解释。
尽管可下载的WordPress文件仅限于一些特殊的程序员,每个WordPress用户都可以更改核心WordPress代码,这使得WordPress可以很自由的定制。</div>




第24行: 第38行:
* [[WordPress Coding Standards]] - General information about coding standards for WordPress development and code writing
* [[WordPress Coding Standards]] - General information about coding standards for WordPress development and code writing
* [[Designing Themes for Public Release]] - Tips and techniques for designing WordPress Themes for release to the general public.
* [[Designing Themes for Public Release]] - Tips and techniques for designing WordPress Themes for release to the general public.
== 主题开发 ==
* [[Theme Development|主题开发]] – 关于设计和开发WordPress主题的参考和资源
* [[Templates|模板]] - WordPress 主题开发参考
* [http://themes.wordpress.net WordPress主题查看器] – 主机WordPress主题下载
* [[Template Tags|模板标签]] - 创建的特别为主题使用而创建的PHP函数
* [[Function Reference|函数参考]] – WordPress的完整的PHP函数参数
* [[WordPress Deprecated Functions Hook| WordPress不支持的函数Hook]] – 关于不支持的函数的hook的信息
* [[Migrating Plugins and Themes|移动插件和主题]] – 包含了关于如何更新你的主题的信息,这样它可以适用于更高的版本
* [[WordPress Coding Standards| WordPress编码标准]] – 关于WordPress开发和代码编写的编码标准的一般信息。
* [[Designing Themes for Public Release|为公开发行设计主题]] – 为公开发行设计WordPress主题的小提示和技巧


== Plugin Development ==
== Plugin Development ==
第36行: 第62行:
* [[Shortcode API]] - A tutorial and reference for the shortcode API (new in version 2.5)
* [[Shortcode API]] - A tutorial and reference for the shortcode API (new in version 2.5)


== 插件开发 ==
* [[Writing a Plugin|写插件]] – 这里是学习如何开发插件最好的入门
* [[Plugin Resources|插件资源]] – 插件开发的其他参考内容全面的列表
* [[Plugin API|插件API]] -用在你的插件中的Hooks, Actions, 和Filters (2.1版; 有链接到旧的版本相关文章)
* [[Function Reference|函数参考]] – 针对WordPress的完整的PHP函数参考 (2.1版, 含有到旧版本的链接)
* [[Migrating Plugins and Themes|移动插件和主题]] – 包含关于如何升级插件来使它适用于更新的版本的信息
* [[WordPress Coding Standards| WordPress编码标准]] – 关于WordPress开发的编码标准的一般信息
* [[Plugin Submission and Promotion|插件提交和发展]] – 一旦你完成了你的插件,这里是一些关于广泛的发布插件的提示
* [[Shortcode API| 短代码API]] –shortcode API的指南和参考(2.5版的新内容)


== Contributing to WordPress ==
== Contributing to WordPress ==
第41行: 第77行:
* [[Contributing to WordPress]] - Main starting point if you would like to contribute to core WordPress development, documentation, support, translations, or financial health
* [[Contributing to WordPress]] - Main starting point if you would like to contribute to core WordPress development, documentation, support, translations, or financial health
* [[Automated Testing]] - Testing WordPress using the automated test suite and how to use the tools and write test cases.
* [[Automated Testing]] - Testing WordPress using the automated test suite and how to use the tools and write test cases.
== 为WordPress做贡献 ==
* [[Contributing to WordPress|为WordPress做贡献]] – 如果你想为WordPress核心开发,文档,支持,翻译或者财政做贡献,这里将是你最主要的起点
* [[Automated Testing|自动化测试]] – 使用自动测试工具进行WordPress测试以及如何使用这些工具和撰写测试案例


== Forums, Lists, and Blogs ==
== Forums, Lists, and Blogs ==
第51行: 第92行:
* http://planetwordpress.planetozh.com/ - Another aggregate of many blogs discussing WordPress mostly plugins and themes (unofficial)
* http://planetwordpress.planetozh.com/ - Another aggregate of many blogs discussing WordPress mostly plugins and themes (unofficial)


== 论坛, 列表和Blog ==
* [[Mailing Lists|邮件列表]] – 文档和开发的WordPress 邮件列表
* [[IRC| IRC]] - WordPress IRC 通道
* http://wordpress.org/support - WordPress 支持论坛
* http://wordpress.org/development - WordPress 开发Blog
* http://planet.wordpress.org – 讨论WordPress的blog集合 (官方的)
* http://planetwordpress.planetozh.com/ - 另一个主要讨论WordPress插件和主题的blog集合(非官方的)


== Other Information of Interest ==
== Other Information of Interest ==
第59行: 第108行:
* [[Using Subversion]] - Introduction to SVN, the source code repository used by WordPress
* [[Using Subversion]] - Introduction to SVN, the source code repository used by WordPress


== 另外一些感兴趣的信息 ==
* [[Advanced Topics|高级话题]] – 有关高级WordPress 话题的文章的注解列表
* [[Query Overview|查询总览]] – 用来寻找文章并显示它们的WordPress 查询过程描述
* [[Reporting Bugs|错误报告]] – 有关报告和修正WordPress错误的信息
* [[Using Subversion|使用子版本]] – SVN和WordPress使用的源代码的介绍


== External Resources ==
== External Resources ==
第67行: 第122行:
* [http://dd32.id.au/wp-2.4-variable-report.html WordPress Variable Report] - A list of WordPress functions, listing what version of PHP every function requires (and if there's a compatible function available), what varables/arguments in functions are unused, and what functions/variables each class contains (and their default values).
* [http://dd32.id.au/wp-2.4-variable-report.html WordPress Variable Report] - A list of WordPress functions, listing what version of PHP every function requires (and if there's a compatible function available), what varables/arguments in functions are unused, and what functions/variables each class contains (and their default values).
* [http://www.google.com/coop/cse?cx=003089488824223329442%3Avwjqws2iu5u  WordPress Development Search (Google CSE)]
* [http://www.google.com/coop/cse?cx=003089488824223329442%3Avwjqws2iu5u  WordPress Development Search (Google CSE)]
== 外部资源 ==
WordPress源代码
* [http://phpxref.com/xref/wordpress/ WordPress的PHPXref] - WordPress文件,函数和变量的参照,与最新版本的WordPress保持一致。[http://xref.redalt.com/ This redalt.com PHPXref 站点] 有bleeding-edge Trunk 版本,也有1.5和2.0版本,但是Trunk版本可能不会继续更新。所以现在[http://sandbox.ftwr.co.uk/wp/ ftwr.co.uk上新的 Trunk Xref 站点] 可以使用。
* [http://planetozh.com/projects/wordpress-functions-history/table_light.html WordPress 函数历史表格] – 列出了每个WordPress 函数被添加到哪个版本中; PlanetOzh推荐:"''参见相关 [http://planetozh.com/blog/2007/10/wordpress-functions-implementation-history-tool/ WordPress 函数执行历史工具]以获得更多信息(还可以获得更多有用的工具)''"
* [http://dd32.id.au/wp-2.4-variable-report.html WordPress 变量报告] – WordPress函数列表,列出了每个函数要求哪个版本的PHP(如果有某个兼容函数可用的话), 函数中什么变量没有用到,以及每个类都包含哪些函数/变量(和它们的默认值).
* [http://www.google.com/coop/cse?cx=003089488824223329442%3Avwjqws2iu5u  WordPress开发搜索 (Google CSE)]


Other Resources
Other Resources
第73行: 第136行:
* [http://subversion.tigris.org/ Subversion Home Page]
* [http://subversion.tigris.org/ Subversion Home Page]


其他资源
* [http://www.php.net/manual/en PHP 手册]
* [http://dev.mysql.com/doc/mysql/en/index.html MySQL 手册]
* [http://subversion.tigris.org/ 子版本主页]
{{toclist}}
{{toclist}}

2008年5月5日 (一) 15:20的版本

Introduction

WordPress believes in keeping it simple, and a lot of thought goes into including new functionality as a part of the "core" WordPress code, in order to keep WordPress fast and lightweight. Still, users often find the need to graft additional functionality onto WordPress to meet their needs. This section of the Codex offers guidelines and references for anyone wishing to modify, extend, or contribute to WordPress.

You may also wish to consult the Developer Documentation FAQ

介绍

为了让WordPress保持快速可轻巧,WordPress信仰保持简单,探究大量包含新功能的想法,作为WordPress"核心"代码的一部分。尽管如此,用户经常寻找并使用有附加功能的主题以满足他们的需要。Codex中的这部分为希望修改扩展WordPress或者为WordPress做贡献的人提供了指导和参考。

你可能需要参考开发者文档常见问题


Programming Code Ahead

In the following articles you may encounter programming terms that are not explained in the usual level of detail required for understanding by non-programmers.

Although the alteration of the downloadable files for WordPress is limited to a few distinct programmers, every WordPress user has the ability to affect change in the core WordPress code, making WordPress highly customizable.
写在程序代码之前

你可能看到的下面的文章中,编程术语不会使用普通水平的语言为非编程人员进行详细的解释。

尽管可下载的WordPress文件仅限于一些特殊的程序员,每个WordPress用户都可以更改核心WordPress代码,这使得WordPress可以很自由的定制。


Theme Development

主题开发

Plugin Development

  • Writing a Plugin - Best starting place for learning about how to develop plugins
  • Plugin Resources - Comprehensive list of other references for plugin development
  • Plugin API - Hooks, Actions, and Filters to use in your Plugins (version 2.1; has links to older version articles)
  • Function Reference - Complete PHP function reference for WordPress (version 2.1, with links to previous versions)
  • Migrating Plugins and Themes - Contains information on how to upgrade your Plugin so it will work from version to version of WordPress
  • WordPress Coding Standards - General information about coding standards for WordPress development
  • Plugin Submission and Promotion - Once you have written your plugin, here are some hints on distributing it widely
  • Shortcode API - A tutorial and reference for the shortcode API (new in version 2.5)

插件开发

  • 写插件 – 这里是学习如何开发插件最好的入门
  • 插件资源 – 插件开发的其他参考内容全面的列表
  • 插件API -用在你的插件中的Hooks, Actions, 和Filters (2.1版; 有链接到旧的版本相关文章)
  • 函数参考 – 针对WordPress的完整的PHP函数参考 (2.1版, 含有到旧版本的链接)
  • 移动插件和主题 – 包含关于如何升级插件来使它适用于更新的版本的信息
  • WordPress编码标准 – 关于WordPress开发的编码标准的一般信息
  • 插件提交和发展 – 一旦你完成了你的插件,这里是一些关于广泛的发布插件的提示
  • 短代码API –shortcode API的指南和参考(2.5版的新内容)

Contributing to WordPress

  • Contributing to WordPress - Main starting point if you would like to contribute to core WordPress development, documentation, support, translations, or financial health
  • Automated Testing - Testing WordPress using the automated test suite and how to use the tools and write test cases.

为WordPress做贡献

  • 为WordPress做贡献 – 如果你想为WordPress核心开发,文档,支持,翻译或者财政做贡献,这里将是你最主要的起点
  • 自动化测试 – 使用自动测试工具进行WordPress测试以及如何使用这些工具和撰写测试案例

Forums, Lists, and Blogs

论坛, 列表和Blog

Other Information of Interest

  • Advanced Topics - Annotated list of many articles on advanced WordPress topics
  • Query Overview - Description of the WordPress query process used to find posts and display them
  • Reporting Bugs - Information on reporting and fixing WordPress bugs
  • Using Subversion - Introduction to SVN, the source code repository used by WordPress

另外一些感兴趣的信息

  • 高级话题 – 有关高级WordPress 话题的文章的注解列表
  • 查询总览 – 用来寻找文章并显示它们的WordPress 查询过程描述
  • 错误报告 – 有关报告和修正WordPress错误的信息
  • 使用子版本 – SVN和WordPress使用的源代码的介绍

External Resources

WordPress Source Code

外部资源

WordPress源代码

Other Resources

其他资源