Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#24271 closed enhancement (duplicate)

Facilitate PHP versions in themes and plugins

Reported by: ryanve Owned by:
Priority: normal Milestone:
Component: Themes Version:
Severity: normal Keywords:
Cc: Focuses:

Description

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.

Change History (4)

#1 @markoheijnen
14 years ago

See #23880. To me this is something bad since it doesn't help a lot for people upgrading to 5.3 or higher. They probably go find another theme/plugin that does the same job.

#2 @SergeyBiryukov
14 years ago

  • Keywords close added

Sounds like a duplicate of #23880 and #12260.

#3 @ocean90
14 years ago

  • Keywords close removed
  • Milestone Awaiting Review
  • Status new → closed

#4 @ocean90
14 years ago

  • Resolution → duplicate
Note: See TracTickets for help on using tickets.