[wp-testers] 2.3 Nightly - Plugin Compatibility
Jennifer Hodgdon
yahgrp at poplarware.com
Thu Aug 30 21:51:48 GMT 2007
Pixline wrote:
> I can speak for myself, but I think that most plugins would fail just
> for upgrade-functions.php
>
> I solved it adding:
>
> if($wp_db_version >= 5540) $page = 'wp-admin/include/upgrade.php'; else
> $page = 'wp-admin/upgrade-functions.php';
> require_once(ABSPATH . $page);
>
> I'm not sure if there's a better way to include this file, by the way...
> can you please explain if you do?
You can try something like this:
if( file_exists( ABSPATH . 'wp-admin/includes/upgrade.php' ))
require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
else
require_once(ABSPATH . 'wp-admin/upgrade-functions.php');
--Jennifer
--
Jennifer Hodgdon
Poplar ProductivityWare * www.poplarware.com
Web Databases/Scripts * Modeling/Analysis/Palm OS Software
More information about the wp-testers
mailing list