[wp-hackers] Version Compare?
dabbaking at gmail.com
Sun Jul 30 15:04:15 GMT 2006
Maybe you can use sr_replace and just take out the -alpha2 part. That suffix
isn't in the final version.
On 7/30/06, Computer Guru <computerguru at neosmart.net> wrote:
> For the update script I'm looking for a way to compare version numbers -
> 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
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers