[wp-trac] Re: [WordPress Trac] #5860: Activating plugin that uses
upgrade functions (dbDelta) fails
WordPress Trac
wp-trac at lists.automattic.com
Thu Feb 14 20:53:23 GMT 2008
#5860: Activating plugin that uses upgrade functions (dbDelta) fails
----------------------------+-----------------------------------------------
Reporter: jhodgdon | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.5
Component: Administration | Version: 2.5
Severity: critical | Resolution:
Keywords: |
----------------------------+-----------------------------------------------
Changes (by jhodgdon):
* cc: jhodgdon (added)
* severity: normal => critical
* summary: In 2.5 bleeding, activating plugin that uses upgrade
functions gives spurious warning => Activating
plugin that uses upgrade functions (dbDelta)
fails
Comment:
I changed the title of this bug -- actually, the activation process is not
working correctly (db functions are not being created).
I also changed this to a higher severity, because I think a lot of plugins
that use separate DB tables use this method to keep them updated. And this
used to work fine in 2.3; worked fine in 2.2 also, though you had to
include a different file:
{{{
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');
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/5860#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list