Inline documentation for hooks in wp-admin/maint/repair.php.

Props ben.moody, kpdesign.
Fixes #25500.


git-svn-id: https://develop.svn.wordpress.org/trunk@25725 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2013-10-08 00:29:37 +00:00
parent 6d1558e461
commit f13f18de24
1 changed files with 8 additions and 1 deletions

View File

@ -38,7 +38,14 @@ if ( ! defined( 'WP_ALLOW_REPAIR' ) ) {
if ( is_multisite() && ! $wpdb->get_var( "SHOW TABLES LIKE '$wpdb->sitecategories'" ) )
unset( $tables['sitecategories'] );
$tables = array_merge( $tables, (array) apply_filters( 'tables_to_repair', array() ) ); // Return tables with table prefixes.
/**
* Filter additional database tables to repair.
*
* @since 3.0.0
*
* @param array $tables Array of prefixed table names to be repaired.
*/
$tables = array_merge( $tables, (array) apply_filters( 'tables_to_repair', array() ) );
// Loop over the tables, checking and repairing as needed.
foreach ( $tables as $table ) {