Make WordPress Core

Ticket #1936: 1936.diff

File 1936.diff, 2.5 KB (added by Nazgul, 19 years ago)
  • wp-admin/install.php

     
    11<?php
    22define('WP_INSTALLING', true);
    3 if (!file_exists('../wp-config.php'))
    4         die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://codex.wordpress.org/Installing_WordPress#Step_3:_Set_up_wp-config.php'>We got it</a>. You can <a href='setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.");
     3if (!file_exists('../wp-config.php')) {
     4  require_once('../wp-includes/functions.php');
     5  wp_die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://codex.wordpress.org/Installing_WordPress#Step_3:_Set_up_wp-config.php'>We got it</a>. You can <a href='setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.", "WordPress &rsaquo; Error");
     6}
    57
    68require_once('../wp-config.php');
    79require_once('./upgrade-functions.php');
  • wp-blog-header.php

     
    44if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) {
    55        if ( strstr( $_SERVER['PHP_SELF'], 'wp-admin') ) $path = '';
    66        else $path = 'wp-admin/';
    7     die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://wordpress.org/docs/faq/#wp-config'>We got it</a>. You can <a href='{$path}setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.");
     7
     8  require_once( dirname(__FILE__) . '/wp-includes/functions.php');
     9  wp_die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://wordpress.org/docs/faq/#wp-config'>We got it</a>. You can <a href='{$path}setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.", "WordPress &rsaquo; Error");
    810}
    911
    1012$wp_did_header = true;