[wp-hackers] Testing for PHP 5 before activating
Andrew Nacin
wp at andrewnacin.com
Mon Jul 12 14:29:53 UTC 2010
On Mon, Jul 12, 2010 at 10:26 AM, John Eckman <eckman.john at gmail.com> wrote:
> Because my plugin uses try/catch syntax, the minute it gets uploaded,
> before the user can even activate it, they get a syntax error about an
> unexpected open curly brace {.
>
> Any suggestions on how to work around that?
Keep the rest of your plugin in a second file and only include it when you
know you can support it.
More information about the wp-hackers
mailing list