问题描述
我正在寻找 WordPress 图表/图表系统设计。
我只发现了模板层次图,但它只是系统的一部分。
来源:http://upload.wikimedia.org/wikipedia/commons/3/3d/Wordpress_Template_Hierarchy.png
最佳解决方案
不止一个答案,这是一个研究和汇编。数据库描述已经在 Damien 答案。
Google search 在 WordPress 论坛中显示:
UML documentation of WordPress
As far as I know, that’s all we have. If you want to write one, I’m sure it’d be welcomed
(Ipstenu, referring to the Database Description)
UML of WordPress MU?
There will likely never be UML diagrams of WordPress because it’s not an OO system. Some parts are OO-like, but overall it’s whatever that particular code contributor made work. There’s no map, just code.And IMO, the point of UML is that it’s done in the architecting phase. A project like WordPress would be hard-pressed to have this since it’s a fluid integration of independent developers contributing to the core.
[…]Welcome to open source.
注意:OPM 中 WikiMedia 的模板层次结构与 Codex 中的模板层次不同点击放大
但是,Chip Bennet 有一个扩展的:)
我以为这个问题与以下内容重复 (但是 mods 表示不是这样):Where can I find a real architecture document on WordPress?
在其中,Mike Schinkel 说:
These generally are not some the open-source WordPress community focuses on doing.
一个答案指向一个 old article 与该图:
另一个到这个 WordPress 3.0 Program Flow (PDF)
Rarst 对此问题的回答 (When should you use WP_Query vs query_posts() vs get_posts()?) 对 WP_Query 有一个很好的概述:
另一个来自 Rarst 的 core load:
http://www.rarst.net/images/wordpress_core_load.png
最后,一个完全不相关的关于性能的问题 (Refactoring WordPress to improve memory performance),但是非常好的图形:)
次佳解决方案
如果您正在寻找数据库模式,there is a version on the Codex:
点击放大
您在帖子中引用的图像是主题开发人员最常用的模板层次结构。
参考文献
注:本文内容整合自 Google/Baidu/Bing 辅助翻译的英文资料结果。如果您对结果不满意,可以加入我们改善翻译效果:薇晓朵技术论坛。