Add a tables_to_repair filter. fixes #11707

git-svn-id: http://svn.automattic.com/wordpress/trunk@13523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-03-01 06:35:48 +00:00
parent 9a05d19cba
commit 12a99233a2

View File

@ -31,8 +31,9 @@ if ( !defined('WP_ALLOW_REPAIR') ) {
$okay = true;
$tables = $wpdb->tables( 'all' );
// Loop over the WP tables, checking and repairing as needed.
$tables = $wpdb->tables();
$tables = array_merge( $tables, (array) apply_filters( 'tables_to_repair', array() ) ); // Return tables with table prefixes.
// Loop over the tables, checking and repairing as needed.
foreach ( $tables as $table ) {
$check = $wpdb->get_row("CHECK TABLE $table");
if ( 'OK' == $check->Msg_text ) {