Make WordPress Core


Ignore:
Timestamp:
02/14/2015 11:38:41 AM (10 years ago)
Author:
DrewAPicture
Message:

Add inline documentation to clarify the reasoning behind the various conditions that control how WP is loaded.

Props mattheweppelsheimer for the initial patch.
Fixes #30935.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-load.php

    r29015 r31463  
    2424error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
    2525
     26/*
     27 * If wp-config.php exists in the WordPress root, or if it exists in the root and wp-settings.php
     28 * doesn't, load wp-config.php. The secondary check for wp-settings.php has the added benefit
     29 * of avoiding cases where the current directory is a nested installation, e.g. / is WordPress(a)
     30 * and /blog/ is WordPress(b).
     31 *
     32 * If neither set of conditions is true, initiate loading the setup process.
     33 */
    2634if ( file_exists( ABSPATH . 'wp-config.php') ) {
    2735
Note: See TracChangeset for help on using the changeset viewer.