Make WordPress Core

Ticket #25500: 25500.3.diff

File 25500.3.diff, 687 bytes (added by kpdesign, 11 years ago)

Second pass on 25500-patch-v2.diff

  • src/wp-admin/maint/repair.php

     
    3838        if ( is_multisite() && ! $wpdb->get_var( "SHOW TABLES LIKE '$wpdb->sitecategories'" ) )
    3939                unset( $tables['sitecategories'] );
    4040
     41        /**
     42         * Filter the array of tables.
     43         *
     44         * @since 3.0.0
     45         *
     46         * @param array $tables Array of table names to be repaired.
     47         */
    4148        $tables = array_merge( $tables, (array) apply_filters( 'tables_to_repair', array() ) ); // Return tables with table prefixes.
    4249
    4350        // Loop over the tables, checking and repairing as needed.