<div dir="ltr"><span style="font-family:arial,helvetica,sans-serif">PHP 5.3 supports </span><a href="http://php.net/manual/en/functions.anonymous.php" style="font-family:arial,helvetica,sans-serif">closures</a><span style="font-family:arial,helvetica,sans-serif"> and other </span><a href="http://php.net/manual/en/migration53.new-features.php" style="font-family:arial,helvetica,sans-serif">features</a><span style="font-family:arial,helvetica,sans-serif">. </span>I want to propose a mechanism for safely allowing PHP 5.3+ themes:<div>
<br><div><font face="courier new, monospace">/**</font></div><div style><font face="courier new, monospace"> * Theme Name: example</font></div><div style><font face="courier new, monospace"> * Minimum PHP version: 5.3.0</font></div>
<div style><font face="courier new, monospace"> * ...</font></div><div><font face="courier new, monospace"> */</font></div><div><br></div><div style><font face="arial, helvetica, sans-serif">With this info, the theme installation page could prevent users from installing 5.3 themes on 5.2 servers. The "Activate" link could be replaced with an alert that tells the user that the theme needs a higher PHP version. If unspecified, it'd default to the WP <a href="http://wordpress.org/about/requirements/">requirement</a>. </font></div>
<div style><font face="arial, helvetica, sans-serif"><br></font></div><div style><font face="arial, helvetica, sans-serif">I'd like to see WP be proactive about encouraging users to use 5.3+. The sooner we get the <a href="http://stackoverflow.com/questions/8372114/php-version-adoption-stats">majority</a> on 5.3, the better it will be for the core too. The same technique could be used for plugins, and it is future-proof to 5.4 etc.</font></div>
<div style><font face="arial, helvetica, sans-serif"><br></font></div><div><div><div><a href="http://twitter.com/ryanve" target="_blank">@ryanve</a></div>
</div></div></div></div>