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

WordPress Trac noreply at wordpress.org
Sat Mar 30 14:51:27 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 F J Kaiser):

 Replying to [comment:23 bpetty]:
 > Regardless of what API WordPress provides for doing this, you obviously
 still need to make sure your main plugin file is fully syntax compatible
 with 5.2, and can't include anything 5.3+ until after checking
 requirements, so you still have nearly the same amount of work you would
 have to do no matter what.

 That's not completely true. You can add comments like {{{#}}}, {{{//}}} or
 {{{/**/}}} ''before'' you add the {{{namespace foo}}} statement. So
 checking this from core would be much easier as your plugin could be fully
 PHP 5.3+ compliant and wouldn't require a bootstrap file.

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


More information about the wp-trac mailing list