Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-load.php

    r19297 r20561  
    1919 */
    2020
    21 /** Define ABSPATH as this files directory */
     21/** Define ABSPATH as this file's directory */
    2222define( 'ABSPATH', dirname(__FILE__) . '/' );
    2323
    … …  
    3131} elseif ( file_exists( dirname(ABSPATH) . '/wp-config.php' ) && ! file_exists( dirname(ABSPATH) . '/wp-settings.php' ) ) {
    3232
    33         /** The config file resides one level above ABSPATH but is not part of another install*/
     33        /** The config file resides one level above ABSPATH but is not part of another install */
    3434        require_once( dirname(ABSPATH) . '/wp-config.php' );
    3535
    … …  
    4040        // Set a path for the link to the installer
    4141        if ( strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false )
    42                 $path = '';
     42                $path = 'setup-config.php';
    4343        else
    44                 $path = 'wp-admin/';
     44                $path = 'wp-admin/setup-config.php';
    4545
    46         require_once( ABSPATH . '/wp-includes/load.php' );
    47         require_once( ABSPATH . '/wp-includes/version.php' );
     46        define( 'WPINC', 'wp-includes' );
    4847        define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
     48        require_once( ABSPATH . WPINC . '/load.php' );
     49        require_once( ABSPATH . WPINC . '/version.php' );
     50
     51        wp_load_translations_early();
    4952        wp_check_php_mysql_versions();
    5053
    5154        // Die with an error message
    52         require_once( ABSPATH . '/wp-includes/class-wp-error.php' );
    53         require_once( ABSPATH . '/wp-includes/functions.php' );
    54         require_once( ABSPATH . '/wp-includes/plugin.php' );
    55         $text_direction = /*WP_I18N_TEXT_DIRECTION*/'ltr'/*/WP_I18N_TEXT_DIRECTION*/;
    56         wp_die(sprintf(/*WP_I18N_NO_CONFIG*/"<p>There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started.</p> <p>Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>.</p> <p>You can create a <code>wp-config.php</code> file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.</p><p><a href='%ssetup-config.php' class='button'>Create a Configuration File</a></p>"/*/WP_I18N_NO_CONFIG*/, $path), /*WP_I18N_ERROR_TITLE*/'WordPress &rsaquo; Error'/*/WP_I18N_ERROR_TITLE*/, array('text_direction' => $text_direction));
     55        $die  = __( "There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started." ) . '</p>';
     56        $die .= '<p>' . __( "Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>." ) . '</p>';
     57        $die .= '<p>' . __( "You can create a <code>wp-config.php</code> file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file." ) . '</p>';
     58        $die .= '<p><a href="' . $path . '" class="button">' . __( "Create a Configuration File" ) . '</a>';
    5759
     60        wp_die( $die, __( 'WordPress &rsaquo; Error' ) );
    5861}
    59 
    60 ?>
Note: See TracChangeset for help on using the changeset viewer.