[wp-hackers] looking for opinions on php5-only plugins

Peter Westwood peter.westwood at ftwr.co.uk
Wed Oct 7 20:31:01 UTC 2009


On 7 Oct 2009, at 18:49, Otto wrote:

> Version number checking is a bad idea. It's simply not accurate enough
> and doesn't tell you what you need to know.
>
> Checking for extensions, or functions provided by extensions (using
> function_exists or class_exists, etc) is much more accurate and sure
> to work. That's what I check for in the activation checks, whenever a
> plugin depends on something that somebody might not have.
>

+1

All checks should be for the functionality you need not what version  
of software you are running on.

westi
-- 
Peter Westwood
http://blog.ftwr.co.uk | http://westi.wordpress.com
C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5



More information about the wp-hackers mailing list