dbDelta produces warnings
|Reported by:||mitchoyoshitaka||Owned by:||westi|
I just followed the instructions 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.
Change History (12)
- Owner changed from ryan to westi
- Status changed from new to accepted