1 parent 4c65eff commit 72f9ff6Copy full SHA for 72f9ff6
1 file changed
wp-settings.php
@@ -61,8 +61,13 @@ function timer_start() {
61
require_once (ABSPATH . WPINC . '/wp-l10n.php');
62
63
$wpdb->hide_errors();
64
-if ( !update_user_cache() && !strstr($_SERVER['PHP_SELF'], 'install.php') )
65
- die("It doesn't look like you've installed WP yet. Try running <a href='wp-admin/install.php'>install.php</a>.");
+if ( !update_user_cache() && !strstr($_SERVER['PHP_SELF'], 'install.php') ) {
+ if ( strstr($_SERVER['PHP_SELF'], 'wp-admin') )
66
+ $link = 'install.php';
67
+ else
68
+ $link = 'wp-admin/install.php';
69
+ die("It doesn't look like you've installed WP yet. Try running <a href='$link'>install.php</a>.");
70
+}
71
$wpdb->show_errors();
72
73
require (ABSPATH . WPINC . '/functions-formatting.php');
0 commit comments