Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#24271 closed enhancement (duplicate)

Facilitate PHP versions in themes and plugins

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

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
11 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
11 years ago

  • Keywords close added

Sounds like a duplicate of #23880 and #12260.

#3 @ocean90
11 years ago

  • Keywords close removed
  • Milestone Awaiting Review deleted
  • Status changed from new to closed

#4 @ocean90
11 years ago

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