[wp-hackers] Version Compare?

Dave W 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 -
> 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/
>
>
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Dave W


More information about the wp-hackers mailing list