plugin-icon

Child Theme Check

Автор: Torsten Landsiedel·
Предупреждает Вас об устаревших файлах шаблона в Вашей дочерней теме и показывает разницу изменений между шаблоном родительской и дочерней темы.
Рейтинги
5
Версия
1.0.9
Активные установки
800
Последние изменения
Jul 6, 2024
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 🙂

Проверено на
WordPress 6.6.5
Этот плагин можно скачать и использовать при .