[theme-reviewers] PHP 5.3 In Themes
Ryan Van Etten
ryanve at gmail.com
Tue Mar 5 21:23:53 UTC 2013
PHP 5.3 supports closures
<http://php.net/manual/en/functions.anonymous.php> and
other features <http://php.net/manual/en/migration53.new-features.php>. I
want to propose a mechanism for safely allowing PHP 5.3+ themes:
/**
* Theme Name: example
* Minimum PHP version: 5.3.0
* ...
*/
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
requirement<http://wordpress.org/about/requirements/>
.
I'd like to see WP be proactive about encouraging users to use 5.3+. The
sooner we get the
majority<http://stackoverflow.com/questions/8372114/php-version-adoption-stats>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.
@ryanve <http://twitter.com/ryanve>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20130305/ca35aad2/attachment.htm>
More information about the theme-reviewers
mailing list