[wp-hackers] WordPress Import/Export
Arne Brachhold
himself at arnebrachhold.de
Thu Jul 6 19:00:32 GMT 2006
>
> I still prefer the idea of checking the db version variable, which I
> know has changed in every major release so far [...]
Why not use the same version system as PHP? That would allow
us to use the version_compare function of PHP [1] which even supports
names like "dev" "RC1","RC2" and so on.
if(version_compare($wp_version,'2.0.4','<')===true)) {
echo "Please upgrade at least to WordPress 2.0.4!";
}
[1] http://de2.php.net/version_compare
Best regards,
Arne
More information about the wp-hackers
mailing list