[wp-trac] [WordPress Trac] #40934: Allow PHP version requirements for plugins & themes
WordPress Trac
noreply at wordpress.org
Tue Jun 6 22:19:17 UTC 2017
#40934: Allow PHP version requirements for plugins & themes
----------------------------+------------------
Reporter: joostdevalk | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.9
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: dev-feedback | Focuses:
----------------------------+------------------
Comment (by blobfolio):
Replying to [comment:10 joostdevalk]:
> Because I wanted to keep this thread readable, I've kept that bit out. I
had thought about that, but am not sure if we want to go there immediately
as it considerably grows the task at hand. At the same time, I can see why
a plugin would require a specific minimum MySQL version for instance, so
we should at least build this with future extensibility in mind.
Haha, yeah, I didn't mention MySQL or OS or Server (e.g. Nginx, Apache,
etc.) for that same reason. :) Those three things start getting difficult
to test for and probably wouldn't be worth it at the outset.
PHP extensions, at least, work the same as PHP itself... good ol'
`phpversion($extension)`.
Replying to @jdgrimes
> Another thing not mentioned: updates should be disabled when a plugin's
minimum PHP version is increased, if the server is running to low of a
version.
Agreed, that is the path of least terrible. But dropping support could
potentially leave users vulnerable to security issues indefinitely, so
there would also need to be a prominent admin notice, probably also an
email notification, informing the site owners of the change. Users don't
ever pay attention to updates, let alone the accompanying upgrade notice
text, so it needs to be BIG and ANNOYING. Haha.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40934#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list