Make WordPress Core


Ignore:
Timestamp:
05/27/2008 05:55:24 PM (14 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-admin/import/mt.php

    r7883 r7999  
    180180    function select_authors() {
    181181        if ( $_POST['upload_type'] === 'ftp' ) {
    182             $file['file'] = ABSPATH . 'wp-content/mt-export.txt';
     182            $file['file'] = WP_CONTENT_DIR . '/mt-export.txt';
    183183            if ( !file_exists($file['file']) )
    184184                $file['error'] = __('<code>mt-export.txt</code> does not exist');
     
    427427        $this->id = (int) $_GET['id'];
    428428        if ( $this->id == 0 )
    429             $this->file = ABSPATH . 'wp-content/mt-export.txt';
     429            $this->file = WP_CONTENT_DIR . '/mt-export.txt';
    430430        else
    431431            $this->file = get_attached_file($this->id);
Note: See TracChangeset for help on using the changeset viewer.