Make WordPress Core

Ticket #25500: repair-path.diff

File repair-path.diff, 1.1 KB (added by ben.moody, 11 years ago)
  • wp-admin/maint/repair.php

    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' ) ) { 
    3737        // Sitecategories may not exist if global terms are disabled.
    3838        if ( is_multisite() && ! $wpdb->get_var( "SHOW TABLES LIKE '$wpdb->sitecategories'" ) )
    3939                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         */
    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.