Facilitate PHP versions in themes and plugins
|Reported by:||ryanve||Owned by:|
I want to propose a future-proof mechanism for safely allowing PHP 5.3+ in themes and plugins:
/** * Theme Name: example * Minimum PHP version: 5.3.0 * ... */
Minimum version info could be used on the theme installation page to prevent 5.2- users from installing 5.3+ themes. The "Activate" link could be subdued or replaced with a link to inform the user that the theme needs a higher PHP version. Unspecified minimums would default to the WP requirement.
I initiated this discussion in the theme-reviewers list. Primary feedback there was to prevent breakage via graceful degradation or otherwise. The mechanism above is viable. Interim solutions are possible but less seamless.
Encouraging 5.3+ helps expedite user transition to 5.3+ and thus helps the core too.