]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/maint/repair.php
Wordpress 3.7
[autoinstalls/wordpress.git] / wp-admin / maint / repair.php
index 7cc13e11ace666f56e4084612afe9df8d8d9b63c..98bf579081c7d5ccf7e370566e6617a5f19b14ac 100644 (file)
@@ -7,7 +7,7 @@
  */
 define('WP_REPAIRING', true);
 
-require_once('../../wp-load.php');
+require_once( dirname( dirname( dirname( __FILE__ ) ) ) . '/wp-load.php' );
 
 header( 'Content-Type: text/html; charset=utf-8' );
 ?>
@@ -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 ) {