[wp-trac] [WordPress Trac] #13715: dbDelta produces warnings
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 3 19:26:57 UTC 2010
#13715: dbDelta produces warnings
-----------------------------+----------------------------------------------
Reporter: mitchoyoshitaka | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: General | Version: 3.0
Severity: normal | Keywords: has-patch
-----------------------------+----------------------------------------------
I just followed the instructions
[http://codex.wordpress.org/Creating_Tables_with_Plugins on the Codex] to
use dbDelta to create and update tables, and I'm getting the following
warning:
{{{
Warning: array_search() [function.array-search]: Wrong datatype for second
argument in /Users/mitcho/wordpress/wp-admin/includes/upgrade.php on line
1526
}}}
It looks like $indices is never being initialized as an array. The
attached patch works, but I'm not familiar with the dbDelta logic so it'll
need review from someone who does.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13715>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list