[WordPress] 外掛分享: Child Theme Check

首頁外掛目錄 › Child Theme Check
WordPress 外掛 Child Theme Check 的封面圖片
800+
安裝啟用
★★★★★
5/5 分(8 則評價)
619 天前
最後更新
問題解決
WordPress 3.6.0+ v1.0.9 上架:2015-09-25

內容簡介

子佈景主題用於避免覆蓋您的自訂設置。但如果您在自己的子佈景主題中保留了一個文件,那麼就可能存在安全風險。在從父佈景主題進行更新後,您總是應該檢查更改,並可能將它們添加到您的子佈景主題中。此外掛可幫助您保持跟蹤父佈景主題中的這些更改。

要完全使用此插件,您的父佈景主題必須在 PHP 文件的標頭中定義模板文件的版本,並提供額外的 @version 資訊。

例如:@version 1.0.0

如果確認此壓擋的版本號,您將會在父佈景主題與子佈景主題之間的差異時看到警告。您可以按照 wp_text_diff()-function 的方式查看父佈景主題文件與子佈景主題文件之間的差異,就像在修訂版本中一樣。

以下是與此外掛有關的一些文章:

KrautPress(德文)
WP Tavern(英文)
Elmastudio(英文)
Elmastudio(德文)

這些來自 Elmastudio 的佈景主題已經在標頭中使用了 @version 資訊:

Uku
Uku Light
Weta
Pukeko
Zeitreise
Werkstatt
Neubau
Hawea

請分享此外掛並且,如果您是一位佈景主題開發人員,請將此功能添加到您的主題中!謝謝🙂

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.9) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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 (German)
WP Tavern (English)
Elmastudio (English)
Elmastudio (German)

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 🙂

延伸相關外掛

文章
Filter
Apply Filters
Mastodon