- // Set a path for the link to the installer
- if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false) $path = '';
- else $path = 'wp-admin/';
+ define( 'WPINC', 'wp-includes' );
+ define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
+ require_once( ABSPATH . WPINC . '/load.php' );
+ require_once( ABSPATH . WPINC . '/version.php' );
+
+ wp_check_php_mysql_versions();
+ wp_load_translations_early();
+
+ // Standardize $_SERVER variables across setups.
+ wp_fix_server_vars();
+
+ require_once( ABSPATH . WPINC . '/functions.php' );
+
+ $path = wp_guess_url() . '/wp-admin/setup-config.php';