Этот плагин не тестировался с последними 3 основными выпусками WordPress. Скорее всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

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.

Например: @version 1.0.0.

В этом случае Вы увидите предупреждение, если версия файла родительской темы выше, чем файл Вашей дочерней темы. И Вы сможете увидеть различия между файлом родительской темы и файлом дочерней темы с помощью функции wp_text_diff()- как в ревизиях.

Some posts about this plugin:

These themes from Elmastudio 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 🙂

Скриншоты

  • Просмотр состояния
  • 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. Активируйте плагин через меню «Плагины» в WordPress.
  3. Активируйте дочернюю тему и запустите проверку дочерней темы из меню инструментов

Часто задаваемые вопросы

Я просто получаю ошибку: В родительской теме отсутствует ключевое слово версии.

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.

Например: @version 1.0.0.

В этом случае Вы увидите предупреждение, если версия файла родительской темы выше, чем файл Вашей дочерней темы. И Вы сможете увидеть различия между файлом родительской темы и файлом дочерней темы с помощью функции wp_text_diff()- как в ревизиях.

Отзывы

02.07.2020
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.
13.09.2016
Very useful and works just fine. Many thanks for your work!
03.09.2016
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.
03.09.2016
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.
Посмотреть все 8 отзывов

Участники и разработчики

«Child Theme Check» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

«Child Theme Check» переведён на 4 языка. Благодарим переводчиков за их работу.

Перевести «Child Theme Check» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

1.0.9

  • Протестировано с WordPress 6.6

1.0.8

  • Upublished because of problems with SVN

1.0.7

  • Протестировано с WordPress 6.5

1.0.6

  • Исправлено CSS

1.0.5

  • Fix broken layout in WordPress 5.7 (Thanks to Torsten Bulk for the report)
  • Исправлено предупреждение PHP
  • Протестировано до 5.7

1.0.4

  • not released

1.0.3

  • Fix flashing of first diff view
  • Больше улучшений в i18n (спасибо @pedromendonca)
  • Протестировано до 5.4

1.0.2

  • Исправлены некоторые проблемы со стандартами кодирования WordPress
  • added Github Updater Metadata
  • updated readme.txt
  • Улучшения в i18n (спасибо @pedromendonca)
  • Протестировано до 5.3

1.0.1

  • Исправлена опечатка в немецком переводе (спасибо @pixolin)
  • Изменен текст ссылки на действие на странице плагинов (Спасибо @presskopp)
  • Протестировано до 4.6.1

1.0.0

  • Первый выпуск