]> 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 e0c594e6abae282746a47ba818adbb85436a7cf6..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' );
 ?>
@@ -16,10 +16,12 @@ header( 'Content-Type: text/html; charset=utf-8' );
 <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title><?php _e( 'WordPress &rsaquo; Database Repair' ); ?></title>
-       <?php wp_admin_css( 'install', true ); ?>
+       <?php
+       wp_admin_css( 'install', true );
+       ?>
 </head>
-<body>
-<h1 id="logo"><img alt="WordPress" src="../images/wordpress-logo.png?ver=20120216" /></h1>
+<body class="wp-core-ui">
+<h1 id="logo"><a href="<?php echo esc_url( __( 'http://wordpress.org/' ) ); ?>"><?php _e( 'WordPress' ); ?></a></h1>
 
 <?php
 
@@ -36,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 ) {
@@ -102,9 +111,9 @@ if ( ! defined( 'WP_ALLOW_REPAIR' ) ) {
        else
                echo '<p>' . __( 'WordPress can automatically look for some common database problems and repair them. Repairing can take a while, so please be patient.' ) . '</p>';
 ?>
-       <p class="step"><a class="button" href="repair.php?repair=1"><?php _e( 'Repair Database' ); ?></a></p>
+       <p class="step"><a class="button button-large" href="repair.php?repair=1"><?php _e( 'Repair Database' ); ?></a></p>
        <p><?php _e( 'WordPress can also attempt to optimize the database. This improves performance in some situations. Repairing and optimizing the database can take a long time and the database will be locked while optimizing.' ); ?></p>
-       <p class="step"><a class="button" href="repair.php?repair=2"><?php _e( 'Repair and Optimize Database' ); ?></a></p>
+       <p class="step"><a class="button button-large" href="repair.php?repair=2"><?php _e( 'Repair and Optimize Database' ); ?></a></p>
 <?php
 }
 ?>