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 ) {