[wp-trac] [WordPress Trac] #11707: Automatic repair of plugin-created tables
WordPress Trac
wp-trac at lists.automattic.com
Mon Jan 4 04:09:58 UTC 2010
#11707: Automatic repair of plugin-created tables
-------------------------+--------------------------------------------------
Reporter: neoxx | Owner: westi
Type: enhancement | Status: new
Priority: normal | Milestone: 3.0
Component: Plugins | Version: 2.9
Severity: normal | Keywords: plugins, repair, db, has-patch
-------------------------+--------------------------------------------------
Hi,
I've just noticed that additional tables that are created by plugins are
not included in the new automatic repair procedure because of the
following code in ''/wp-admin/maint/repair.php''.
{{{
// Loop over the WP tables, checking and repairing as needed.
foreach ($wpdb->tables as $table)
}}}
What do you think about changing the loop to include all tables which
adhere to the $wpdb->prefix syntax (see attached patch)? Imho, if an
author follows all the instructions of the tutorial 'Creating Tables with
Plugins' [http://codex.wordpress.org/Creating_Tables_with_Plugins] he/she
should also benefit from this new functionality.
Greetz,
Berny
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11707>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list