Make WordPress Core

Changeset 13523


Ignore:
Timestamp:
03/01/2010 06:35:48 AM (13 years ago)
Author:
nacin
Message:

Add a tables_to_repair filter. fixes #11707

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/maint/repair.php

    r13324 r13523  
    3232    $okay = true;
    3333
    34     $tables = $wpdb->tables( 'all' );
    35     // Loop over the WP tables, checking and repairing as needed.
     34    $tables = $wpdb->tables();
     35    $tables = array_merge( $tables, (array) apply_filters( 'tables_to_repair', array() ) ); // Return tables with table prefixes.
     36    // Loop over the tables, checking and repairing as needed.
    3637    foreach ( $tables as $table ) {
    3738        $check = $wpdb->get_row("CHECK TABLE $table");
Note: See TracChangeset for help on using the changeset viewer.