From 12a99233a2d7af4e4b0a261bd2c6a4e85ab84fdc Mon Sep 17 00:00:00 2001 From: nacin Date: Mon, 1 Mar 2010 06:35:48 +0000 Subject: [PATCH] Add a tables_to_repair filter. fixes #11707 git-svn-id: http://svn.automattic.com/wordpress/trunk@13523 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/maint/repair.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-admin/maint/repair.php b/wp-admin/maint/repair.php index 2c0f444671..7d8c0b9cb8 100644 --- a/wp-admin/maint/repair.php +++ b/wp-admin/maint/repair.php @@ -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 ) {