[wp-hackers] Creating tables using dbDelta

Sudar Muthu sudar at sudarmuthu.com
Tue Apr 8 17:31:18 GMT 2008


Thanks Ozh for the reply.

The correct code is

if ($wp_version >= '2.3') {
       require_once(ABSPATH.'wp-admin/includes/upgrade.php');
} else {
       require_once(ABSPATH.'wp-admin/upgrade-functions.php') ;
}



On Mon, Apr 7, 2008 at 2:41 AM, Ozh <ozh at planetozh.com> wrote:

> If I remember, the change happened with 2.3
>
> if ($wp_version >= '2.3') {
>        require_once(ABSPATH.'/wp-admin/includes/admin.php');
> } else {
>        require_once(ABSPATH.'/wp-admin/admin-functions.php') ;
> }
>
> Something like this.
>
> On Sun, Apr 6, 2008 at 8:15 PM, Sudar Muthu <sudar at sudarmuthu.com> wrote:
> >  the file which is included is a different one. Earlier it was
> >  wp-admin/upgrade-functions.php and now it is
> wp-admin/includes/upgrade.php
> >
>
>
>
> --
> http://FrenchFragFactory.net ~ Daily Quake News
> http://planetOzh.com ~ Blog and WordPress Stuff
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
With Regards,
Sudar

http://SudarMuthu.com


More information about the wp-hackers mailing list