Make WordPress Core

Changeset 7991 for trunk/wp-load.php


Ignore:
Timestamp:
05/25/2008 03:50:15 PM (17 years ago)
Author:
ryan
Message:

File file level phpdoc from jacobsantos. see #7037

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-load.php

    r7971 r7991  
    11<?php
     2/**
     3 * Bootstrap file for setting the ABSPATH constant
     4 * and loading the wp-config.php file. The wp-config.php
     5 * file will then load the wp-settings.php file, which
     6 * will then set up the WordPress environment.
     7 *
     8 * If the wp-config.php file is not found then an error
     9 * will be displayed asking the visitor to set up the
     10 * wp-config.php file.
     11 *
     12 * Also made to work in the wp-admin/ folder, because it
     13 * will look in the parent directory if the file is not
     14 * found in the current directory.
     15 *
     16 * @package WordPress
     17 */
    218
    3 // Define ABSPATH as this files directory
     19/** Define ABSPATH as this files directory */
    420define( 'ABSPATH', dirname(__FILE__) . '/' );
    521
    622if ( file_exists( ABSPATH . 'wp-config.php') ) {
    723
    8     // The config file resides in ABSPATH
     24    /** The config file resides in ABSPATH */
    925    require_once( ABSPATH . 'wp-config.php' );
    1026
    1127} elseif ( file_exists( dirname(ABSPATH) . '/wp-config.php' ) ) {
    1228
    13     // The config file resides one level below ABSPATH
     29    /** The config file resides one level below ABSPATH */
    1430    require_once( dirname(ABSPATH) . '/wp-config.php' );
    1531
Note: See TracChangeset for help on using the changeset viewer.