Make WordPress Core


Ignore:
Timestamp:
05/27/2008 05:55:24 PM (17 years ago)
Author:
ryan
Message:

Allow wp-content to exist outside of webroot. Props sambauers. see #6938

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r7998 r7999  
    10811081    $upload_path = get_option( 'upload_path' );
    10821082    if ( trim($upload_path) === '' )
    1083         $upload_path = 'wp-content/uploads';
     1083        $upload_path = WP_CONTENT_DIR . '/uploads';
    10841084    $dir = $upload_path;
    10851085
     
    15591559function require_wp_db() {
    15601560    global $wpdb;
    1561     if ( file_exists( ABSPATH . 'wp-content/db.php' ) )
    1562         require_once( ABSPATH . 'wp-content/db.php' );
     1561    if ( file_exists( WP_CONTENT_DIR . '/db.php' ) )
     1562        require_once( WP_CONTENT_DIR . '/db.php' );
    15631563    else
    15641564        require_once( ABSPATH . WPINC . '/wp-db.php' );
     
    15691569
    15701570    // Load custom DB error template, if present.
    1571     if ( file_exists( ABSPATH . 'wp-content/db-error.php' ) ) {
    1572         require_once( ABSPATH . 'wp-content/db-error.php' );
     1571    if ( file_exists( WP_CONTENT_DIR . '/db-error.php' ) ) {
     1572        require_once( WP_CONTENT_DIR . '/db-error.php' );
    15731573        die();
    15741574    }
Note: See TracChangeset for help on using the changeset viewer.