X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/wordpress.git/blobdiff_plain/80b7979fccf09a75af3f4c111fa27060ae6dbf85..e08b42e8ad054ec67522d7ac1aaae5dc68cb3d01:/wp-admin/maint/repair.php diff --git a/wp-admin/maint/repair.php b/wp-admin/maint/repair.php index e0c594e6..7691e7cd 100644 --- a/wp-admin/maint/repair.php +++ b/wp-admin/maint/repair.php @@ -7,24 +7,27 @@ */ 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' ); ?> >
+wp-config.php
file. Once this line is added to your config, reload this page.' ) . "define('WP_ALLOW_REPAIR', true);
";
+ echo '' . __( 'To allow use of this page to automatically repair database problems, please add the following line to your wp-config.php
file. Once this line is added to your config, reload this page.' ) . "
define('WP_ALLOW_REPAIR', true);
' . __( 'Repairs complete. Please remove the following line from wp-config.php to prevent this page from being used by unauthorized users.' ) . "
define('WP_ALLOW_REPAIR', true);
";
+ echo '' . __( 'Repairs complete. Please remove the following line from wp-config.php to prevent this page from being used by unauthorized users.' ) . "
define('WP_ALLOW_REPAIR', true);
' . __( 'WordPress can automatically look for some common database problems and repair them. Repairing can take a while, so please be patient.' ) . '
'; ?> - + - +