Title: Child Theme Check
Author: Torsten Landsiedel
Published: <strong>2015 年 9 月 26 日</strong>
Last modified: 2026 年 5 月 31 日

---

搜索插件

![](https://ps.w.org/child-theme-check/assets/banner-772x250.png?rev=1254009)

![](https://ps.w.org/child-theme-check/assets/icon-256x256.png?rev=1254009)

# Child Theme Check

 作者：[Torsten Landsiedel](https://profiles.wordpress.org/zodiac1978/)

[下载](https://downloads.wordpress.org/plugin/child-theme-check.1.0.10.zip)

 * [详情](https://cn.wordpress.org/plugins/child-theme-check/#description)
 * [评价](https://cn.wordpress.org/plugins/child-theme-check/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/child-theme-check/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/child-theme-check/#developers)

 [支持](https://wordpress.org/support/plugin/child-theme-check/)

## 描述

Child Themes are used to avoid overwriting your customizations. But if you preserve
a file in a child theme, then you maybe preserve a security risk. After an update
from the parent theme you always should check the changes and maybe add them to 
your child theme. This plugin helps you keeping track of these changes in the parent
theme.

For full usage of the plugin your parent theme has to define the version of the 
template file in the header of the PHP file with an additional @version info.

For example: `@version 1.0.0`

If this is the case you will see a warning if the version of the parent theme file
is higher than your child theme file. And you can see the differences between the
parent theme file and the child theme file per wp_text_diff()-function like in revisions.

Some posts about this plugin:

 * [KrautPress](https://krautpress.de/2016/child-theme-dilemma/) (German)
 * [WP Tavern](https://wptavern.com/child-theme-check-plugin-helps-wordpress-users-navigate-parent-theme-updates)(
   English)
 * [Elmastudio](http://www.elmastudio.de/en/wordpress-plugins-child-theme-check/)(
   English)
 * [Elmastudio](http://www.elmastudio.de/wordpress-plugin-tipp-child-theme-check/)(
   German)

These themes from [Elmastudio](http://www.elmastudio.de/en/) are already using the
@version info in the header:

 * Uku
 * Uku Light
 * Weta
 * Pukeko
 * Zeitreise
 * Werkstatt
 * Neubau
 * Hawea

Please spread the word and if you are a theme developer, please add this to your
themes too! Thanks 🙂

## 屏幕截图

 * [[
 * Status View
 * [[
 * Diff View

## 安装

 1. Upload the zip file from this plugin on your plugins page or search for `Child 
    Theme Check` and install it directly from the repository
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Activate a child theme and run the child theme check from your tools menu

## 常见问题

### I just get the error: Parent theme is missing version keyword.

For full usage of the plugin your parent theme has to define the version of the 
template file in the header of the PHP file with an additional @version info.

For example: `@version 1.0.0`

If this is the case you will see a warning if the version of the parent theme file
is higher than your child theme file. And you can see the differences between the
parent theme file and the child theme file per wp_text_diff()-function like in revisions.

## 评价

![](https://secure.gravatar.com/avatar/0b1a564da33d5dacc0dde7ff55fe7ff70c50210ca3c9b02f167f27cd912e1963?
s=60&d=retro&r=g)

### 󠀁[Diff is Legit](https://wordpress.org/support/topic/diff-is-legit/)󠁿

 [exius](https://profiles.wordpress.org/exius/) 2020 年 7 月 2 日

Diff works as advertised. It highlights changes to lines of code inside my child-
theme files as compared to the parent theme files. Since I’m using a premium theme,
I don’t have control over how the theme is written, so the @version detection feature
will doubtfully be useful in this case since the parent theme isn’t using that on
top of all their pages. They are however using the @since tag for almost every function.
That seems complicated to track. Diff is already highlighting the differences between
lines of code, so @since might not be too useful either.

![](https://secure.gravatar.com/avatar/6c7e1967cfda73eb916330f2c3410df42e013c2073c7bbec3b6a598ba5259903?
s=60&d=retro&r=g)

### 󠀁[Great tool](https://wordpress.org/support/topic/great-tool-58/)󠁿

 [John](https://profiles.wordpress.org/dsl225/) 2016 年 9 月 13 日

Very useful and works just fine. Many thanks for your work!

![](https://secure.gravatar.com/avatar/d910fdd7595ec843abbd6e3977b31c74c60f2115eb0a4766022b7d137ec21814?
s=60&d=retro&r=g)

### 󠀁[Very helpful](https://wordpress.org/support/topic/very-helpful-292/)󠁿

 [Sven Wagener](https://profiles.wordpress.org/mahype/) 2016 年 9 月 3 日

This tool have been really helpful for me. Thanks a lot!

![](https://secure.gravatar.com/avatar/9786181f2ac82df1c2b05de1899533eadab7a16b5e6f7462d0c11f6abe6af6bd?
s=60&d=retro&r=g)

### 󠀁[Great tool](https://wordpress.org/support/topic/great-tool-403/)󠁿

 [Li-An](https://profiles.wordpress.org/li-an/) 2016 年 9 月 3 日

I was bored to verify if my child themes were up to date and this plugin is a great
tool to see in a glimps if you have to rework your child theme.

![](https://secure.gravatar.com/avatar/6d9d2b8c442507bf25f89fa608c61dda47835f4d36c0dfb2167923cccc7dbcef?
s=60&d=retro&r=g)

### 󠀁[Does what it is supposed to](https://wordpress.org/support/topic/does-what-it-is-supposed-to-6/)󠁿

 [websupporter](https://profiles.wordpress.org/websupporter/) 2016 年 9 月 3 日

Thank you Thorsten et.al for this very useful plugin. I think it’s a fantastic idea
to check for a version header and this plugin is a good reminder of developing with
a useful standard.

![](https://secure.gravatar.com/avatar/e82f6b94a5777e190962ec89e176d41ad08b6e8ae690fc0d8d405e3bb16d853b?
s=60&d=retro&r=g)

### 󠀁[Wow! great tool](https://wordpress.org/support/topic/wow-great-tool/)󠁿

 [dimitris33](https://profiles.wordpress.org/dimitris33/) 2016 年 9 月 3 日

Just found it, great tool, thanks for sharing

 [ 阅读所有8条评价 ](https://wordpress.org/support/plugin/child-theme-check/reviews/)

## 贡献者及开发者

「Child Theme Check」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Torsten Landsiedel ](https://profiles.wordpress.org/zodiac1978/)
 *   [ Drivingralle ](https://profiles.wordpress.org/drivingralle/)
 *   [ Frank Neumann-Staude ](https://profiles.wordpress.org/fstaude/)
 *   [ Hinnerk Altenburg ](https://profiles.wordpress.org/hinnerk/)

「Child Theme Check」插件已被翻译至 4 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/child-theme-check/contributors)
为本插件所做的贡献。

[帮助将「Child Theme Check」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/child-theme-check)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/child-theme-check/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/child-theme-check/)，或通过[RSS](https://plugins.trac.wordpress.org/log/child-theme-check/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/child-theme-check/)。

## 更新日志

#### 1.0.10

 * Tested with WordPress 7.0
 * Adding PHPStan to project
 * Fix errors reported by PHPStan and Plugin Check
 * General code maintenance

#### 1.0.9

 * Tested with WordPress 6.6

#### 1.0.8

 * Upublished because of problems with SVN

#### 1.0.7

 * Tested with WordPress 6.5

#### 1.0.6

 * Fix CSS

#### 1.0.5

 * Fix broken layout in WordPress 5.7 (Thanks to Torsten Bulk for the report)
 * Fix PHP warning
 * Tested up to 5.7

#### 1.0.4

 * not released

#### 1.0.3

 * Fix flashing of first diff view
 * More i18n improvements (Thanks @pedromendonca)
 * Tested up to 5.4

#### 1.0.2

 * fixed some WordPress coding standards issues
 * added Github Updater Metadata
 * updated readme.txt
 * i18n improvements (Thanks @pedromendonca)
 * Tested up to 5.3

#### 1.0.1

 * Fixed typo in German translation (Thanks @pixolin)
 * Changed text for action link on plugins page (Thanks @presskopp)
 * Tested up to 4.6.1

#### 1.0.0

 * Initial release

## 额外信息

 *  版本 **1.0.10**
 *  最后更新：**1 周前**
 *  活跃安装数量 **800+**
 *  WordPress 版本 ** 3.6.0 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  语言
 * [English (US)](https://wordpress.org/plugins/child-theme-check/) 、 [German](https://de.wordpress.org/plugins/child-theme-check/)、
   [Italian](https://it.wordpress.org/plugins/child-theme-check/) 、 [Portuguese (Portugal)](https://pt.wordpress.org/plugins/child-theme-check/)
   和 [Russian](https://ru.wordpress.org/plugins/child-theme-check/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/child-theme-check)
 * 标签
 * [check](https://cn.wordpress.org/plugins/tags/check/)[child](https://cn.wordpress.org/plugins/tags/child/)
   [child theme](https://cn.wordpress.org/plugins/tags/child-theme/)[theme](https://cn.wordpress.org/plugins/tags/theme/)
 *  [高级视图](https://cn.wordpress.org/plugins/child-theme-check/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  8 条 5 星评价     ](https://wordpress.org/support/plugin/child-theme-check/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/child-theme-check/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/child-theme-check/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/child-theme-check/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/child-theme-check/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/child-theme-check/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/child-theme-check/reviews/)

## 贡献者

 *   [ Torsten Landsiedel ](https://profiles.wordpress.org/zodiac1978/)
 *   [ Drivingralle ](https://profiles.wordpress.org/drivingralle/)
 *   [ Frank Neumann-Staude ](https://profiles.wordpress.org/fstaude/)
 *   [ Hinnerk Altenburg ](https://profiles.wordpress.org/hinnerk/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/child-theme-check/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=LCH9UVV7RKDFY)