[wp-trac] [WordPress Trac] #16395: Add 'Template Version' for use with 'Template' in Child-Themes
WordPress Trac
noreply at wordpress.org
Mon Dec 28 18:30:44 UTC 2015
#16395: Add 'Template Version' for use with 'Template' in Child-Themes
----------------------------------------+------------------------------
Reporter: cais | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+------------------------------
Changes (by swissspidy):
* keywords: has-patch needs-refresh => has-patch needs-unit-tests
Comment:
An alternative to having a global `Template Version` field is to declare
the template version for each template file (e.g. by adding `@version xy`
to each PHP file), similar to how WooCommerce does it.
That way developers can check for the individual theme files that need an
update instead of checking the whole parent theme when it gets updated.
See https://wordpress.org/plugins/child-theme-check/ for a plugin that
implements such a check.
It is not a dependency thing though, just for versioning.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/16395#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list