[wp-hackers] How to determine which WordPress version is running ?
Viper007Bond
viper at viper007bond.com
Tue Jan 23 03:43:35 GMT 2007
Oh, good point. Forgot about that...
On 1/22/07, wordpress at nazgul.nu <wordpress at nazgul.nu> wrote:
>
> Keep in mind that the $wp_db_version doesn't always change with a new
> release. The 2.0.3 and 2.0.4 releases shared the same db version for
> instance.
>
> http://trac.wordpress.org/changeset/3825
> http://trac.wordpress.org/changeset/4063
>
> Regards,
> Bas Bosman (Nazgul)
>
>
> -----Original Message-----
> From: wp-hackers-bounces at lists.automattic.com
> [mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Robin
> Adrianse
> Sent: maandag 22 januari 2007 5:38
> To: wp-hackers at lists.automattic.com
> Subject: Re: [wp-hackers] How to determine which WordPress version is
> running ?
>
> Good catch.
>
> On 1/20/07, Viper007Bond <viper at viper007bond.com> wrote:
> >
> > http://trac.wordpress.org/log/trunk/wp-includes/version.php
> >
> > On 1/20/07, Per Soderlind <per at soderlind.no> wrote:
> > >
> > >
> > > Viper007Bond wrote:
> > > >
> > > > I find this to be best:
> > > >
> > > > global $wp_db_version;
> > > > if ( 3664 <= $wp_db_version ) die('Your version is too low.'); //
> > > > Change the
> > > > "3664" to whatever revision you wanna check for
> > > >
> > > > > Per Soderlind wrote:
> > > > > > In my plugin, I need to determine which WordPress version it's
> > > > installed
> > > > > on.
> > > > > > What is the best method for doing this ?
> > > > >
> > >
> > > Is there a list showing the revision numbers vs wp version ?
> > >
> > > ../Per
> > >
> > >
> > > _______________________________________________
> > > wp-hackers mailing list
> > > wp-hackers at lists.automattic.com
> > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > >
> >
> >
> >
> > --
> > Viper007Bond | http://www.viper007bond.com/
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
--
Viper007Bond | http://www.viper007bond.com/
More information about the wp-hackers
mailing list