Add a tables_to_repair filter. fixes #11707

git-svn-id: https://develop.svn.wordpress.org/trunk@13523 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-03-01 06:35:48 +00:00
parent 8ee771f548
commit e736145a98
1 changed files with 3 additions and 2 deletions

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