From 9482d8f08a3cf410ab09b82e381d2940abc84d4e Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 8 Oct 2013 00:30:09 +0000 Subject: [PATCH] Inline documentation for hooks in wp-admin/maint/repair.php. Props ben.moody, kpdesign. Fixes #25500. Built from https://develop.svn.wordpress.org/trunk@25725 git-svn-id: http://core.svn.wordpress.org/trunk@25638 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/maint/repair.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wp-admin/maint/repair.php b/wp-admin/maint/repair.php index de85dbab5a..98bf579081 100644 --- a/wp-admin/maint/repair.php +++ b/wp-admin/maint/repair.php @@ -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 ) {