Add check for "Template Version" on theme activation
|Reported by:||nathanrice||Owned by:|
|Cc:||nathanrice, mikeschinkel@…, edward.caissie@…, travis@…, lance@…, 24-7@…|
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?