[wp-trac] [WordPress Trac] #16395: Add 'Template Version' for use with 'Template' in Child-Themes
WordPress Trac
noreply at wordpress.org
Mon Dec 28 19:15:35 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:
----------------------------------------+------------------------------
Comment (by cais):
Replying to [comment:10 swissspidy]:
> 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.
I can definitely see this idea as working in conjunction with this ticket
but I'm not seeing it as an alternative. The premise is for Child-Theme
authors to be aware of and note which Parent-Theme version the Child-Theme
was last known to be compatible with in an overall sense. This is much
along the same lines that the "Requires at least" reference in plugins is
used ... in my mind, this is where the idea originated from.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/16395#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list