Make WordPress Core

Opened 2 weeks ago

Last modified 7 days ago

#43992 new task (blessed)

Prevent activation of a plugin if its required PHP version is too high

Reported by: flixos90 Owned by:
Milestone: 5.0 Priority: normal
Severity: major Version:
Component: Plugins Keywords: needs-patch needs-unit-tests servehappy dev-feedback
Focuses: Cc:


Note: This ticket is a subtask for the overarching #40934 ticket.

While the plans from #43986 and #43987 will ensure nobody can install or update plugins that require a PHP version higher than the version used, a third step should be to prevent plugin activations of said plugins. It is still possible to just upload plugin directories and then activate them from there. While the above tickets will cover the majority of cases, we should also account for the latter.

A difference between other work and this one would be that here, we need to read the required PHP version from the plugin readme file directly instead from the w.org plugins API.

Change History (2)

This ticket was mentioned in Slack in #core-php by flixos90. View the logs.

7 days ago

#2 @Luciano Croce
7 days ago

  • Keywords dev-feedback added
  • Severity changed from normal to major

This ticket is fantastic: i am fully in agreement with it, and at its introduction.

I have introduced this good practice in all my plugins for a long time''

Note: See TracTickets for help on using tickets.