Title: 源代码
Author: WordPress.org
Published: 2025 年 12 月 1 日

---

# 源代码

如果你想浏览 WordPress 源代码和内联文档，有一个 [方便的开发人员参考](https://developer.wordpress.org/reference/)
和一个 [代码浏览器](https://core.trac.wordpress.org/browser/)。您还可以找到 [使用 Subversion](https://make.wordpress.org/core/handbook/contribute/svn/)
和 [使用 Git](https://make.wordpress.org/core/handbook/contribute/git/) 的指南。

已构建的 WordPress 源代码，由 GNU 通用公共许可证版本 2（或更高版本）[许可](https://cn.wordpress.org/about/license/)，
可以 [ 在线浏览](https://build.trac.wordpress.org/browser) 或者使用 Subversion 或者
Git 检出至本地：

 * Subversion：`https://core.svn.wordpress.org/`
 * Git 镜像：`git://core.git.wordpress.org/`

WordPress 使用 UglifyJS 对核心 JavaScript 文件进行了最小化，并使用 clean-css 对 
CSS 进行了最小化，所有这些都是通过 [Grunt](https://gruntjs.com/) 基于 JavaScript
的任务运行程序实现的。开发源代码包括这些文件的未最小化版本以及构建脚本，可 [在线](https://core.trac.wordpress.org/browser)
浏览，或使用 Subversion 或 Git 在本地查看：

 * Subversion：`https://develop.svn.wordpress.org/`
 * Git 镜像：`git://develop.git.wordpress.org/`

WordPress 中包含的任何程序二进制文件或经过精简的外部脚本的源代码都可以从我们的 [源码库](https://code.trac.wordpress.org/browser/wordpress-sources)
中免费获取。