[wp-hackers] Version Compare?

Computer Guru computerguru at neosmart.net
Sun Jul 30 14:58:18 GMT 2006


For the update script I'm looking for a way to compare version numbers - but
they're not numbers.

echo bloginfo('version')

returns 2.1-alpha2

Which I _can't_ compare to 2.1-beta1 and get the right answer. 

Is there a hack for this?

Computer Guru
NeoSmart Technologies
http://neosmart.net/blog/





More information about the wp-hackers mailing list