[wp-trac] [WordPress Trac] #23880: Minimum PHP version in Plugins

WordPress Trac noreply at wordpress.org
Thu Mar 28 12:42:42 UTC 2013


#23880: Minimum PHP version in Plugins
-----------------------------+------------------------------
 Reporter:  TJNowell         |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Plugins          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+------------------------------

Comment (by markoheijnen):

 Replying to [comment:11 TJNowell]:
 > Replying to [comment:10 markoheijnen]:
 > > I don't think we should implement this in core. To me a plugin should
 work on every WordPress installation. That to me does make a plugin good
 or not. Obviously stuff added to 5.3 and 5.4 is cool to use.
 > >
 > > The migration problem isn't one to fix. The reason is that you would
 need to check the PHP/MySQL version on every request to really do it well
 and that is a performance penalty.
 >
 > This is naive, while we'd like this in a perfect world, we don't live in
 a perfect world. PHP 5.3 offers solutions to problems that aren't fixable
 in 5.2, name spacing being a major example. They weren't added on a whim.
 >
 > What's more, other libraries that a plugin might require weren't built
 for WordPress. What if I built a plugin that by its very nature required
 use of a library that was built with 5.3 in mind?

 Namespacing isn't something a plugin needs. It's helps you out to
 structure code. So it's not naive thinking when you can make the plugin
 working on 5.2 by not using namespacing. It wouldn't work less.

 Libraries is indeed an issue and I also sometimes use them. However I
 would never release the plugin on .org.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23880#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list