[wp-trac] [WordPress Trac] #16883: Add check for "Template Version" on theme activation

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 18 03:28:36 UTC 2011


#16883: Add check for "Template Version" on theme activation
-------------------------+-------------------------------------
 Reporter:  nathanrice   |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Themes       |    Version:  3.1
 Severity:  normal       |   Keywords:  needs-patch 2nd-opinion
-------------------------+-------------------------------------
 Related: #16395

 In addition to adding Template Version to the standard meta information
 extracted from style.css in `get_theme_data()`, I think that for this
 information to be useful, a child theme shouldn't be able to be activated
 unless the template template the child theme uses (parent theme) meets the
 minimum version requirement identified in "Template Version".

 A polite and graceful failure, with an error notice, would be preferable
 :-)

 Reason: many times child themes utilize functionality that only exists in
 the latest version of a parent theme. They're stuck either writing
 backward compatibility into into their code, or risking whitescreens.

 This not only prevents that, but it could be used to gently encourage the
 user to update the parent theme.

 Certainly not a candidate for 3.1.1, but perhaps 3.2?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16883>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list