mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
If we're already in wp-admin don't recursive link
git-svn-id: http://svn.automattic.com/wordpress/trunk@2171 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
85c19d30c2
commit
ca2815fb70
@ -61,8 +61,13 @@ require (ABSPATH . WPINC . '/functions.php');
|
||||
require_once (ABSPATH . WPINC . '/wp-l10n.php');
|
||||
|
||||
$wpdb->hide_errors();
|
||||
if ( !update_user_cache() && !strstr($_SERVER['PHP_SELF'], 'install.php') )
|
||||
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') )
|
||||
$link = 'install.php';
|
||||
else
|
||||
$link = 'wp-admin/install.php';
|
||||
die("It doesn't look like you've installed WP yet. Try running <a href='$link'>install.php</a>.");
|
||||
}
|
||||
$wpdb->show_errors();
|
||||
|
||||
require (ABSPATH . WPINC . '/functions-formatting.php');
|
||||
|
Loading…
Reference in New Issue
Block a user