mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
9a05d19cba
commit
12a99233a2
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user