[wp-hackers] readme.txt: "Requires PHP 5 tag"

Chris Jean gaarai at gaarai.com
Sat Jul 18 02:41:53 UTC 2009

In other words, you could create a small base plugin file that contained 
the plugin meta-data to register the plugin and contained nothing more 
than the version check as Otto described. If the version check passes, 
load the necessary code from another file included with the plugin.

Chris Jean

Otto wrote:
> On Fri, Jul 17, 2009 at 4:11 PM, Geoffrey
> Sneddon<foolistbar at googlemail.com> wrote:
>> But if you use PHP 5 only syntax, you'll have a fatal error thrown and thus
>> that code will never be executed.
> None of that syntax is PHP 5 only. And you won't get a fatal error
> until you actually try to use the PHP 5 code in the plugin. Just
> having it there doesn't make it go fatal until it tries to actually
> interpret it.
> Since the plugin deactivates itself on activation, the only way you
> can go fatal is if you have actual PHP 5 code in the main body of the
> plugin (instead of in a function or something).
> -Otto
> Sent from Memphis, TN, United States
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list