From 645dc3757ed6b7b199c74d7c44a6337b9b739809 Mon Sep 17 00:00:00 2001
From: BENJAMIN MOODY <hireme@benjaminmoody.com>
Date: Sun, 6 Oct 2013 16:52:48 -0400
Subject: [PATCH] Added comments for 'tables_to_repair' filter
---
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 de85dba..169307f 100644
a
|
b
|
if ( ! defined( 'WP_ALLOW_REPAIR' ) ) { |
37 | 37 | // Sitecategories may not exist if global terms are disabled. |
38 | 38 | if ( is_multisite() && ! $wpdb->get_var( "SHOW TABLES LIKE '$wpdb->sitecategories'" ) ) |
39 | 39 | unset( $tables['sitecategories'] ); |
40 | | |
| 40 | |
| 41 | /** |
| 42 | * Add non WordPress tables (not returned by $wpdb->tables()) to array of tables to repair/optimize |
| 43 | * |
| 44 | * @since 3.0.0 |
| 45 | * |
| 46 | * @param array $tables_to_repair |
| 47 | */ |
41 | 48 | $tables = array_merge( $tables, (array) apply_filters( 'tables_to_repair', array() ) ); // Return tables with table prefixes. |
42 | 49 | |
43 | 50 | // Loop over the tables, checking and repairing as needed. |