mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Allow wp-content to exist outside of webroot. Props sambauers. see #6938
git-svn-id: https://develop.svn.wordpress.org/trunk@7999 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -179,7 +179,7 @@ class MT_Import {
|
||||
|
||||
function select_authors() {
|
||||
if ( $_POST['upload_type'] === 'ftp' ) {
|
||||
$file['file'] = ABSPATH . 'wp-content/mt-export.txt';
|
||||
$file['file'] = WP_CONTENT_DIR . '/mt-export.txt';
|
||||
if ( !file_exists($file['file']) )
|
||||
$file['error'] = __('<code>mt-export.txt</code> does not exist');
|
||||
} else {
|
||||
@@ -426,7 +426,7 @@ class MT_Import {
|
||||
function import() {
|
||||
$this->id = (int) $_GET['id'];
|
||||
if ( $this->id == 0 )
|
||||
$this->file = ABSPATH . 'wp-content/mt-export.txt';
|
||||
$this->file = WP_CONTENT_DIR . '/mt-export.txt';
|
||||
else
|
||||
$this->file = get_attached_file($this->id);
|
||||
$this->get_authors_from_post();
|
||||
|
||||
Reference in New Issue
Block a user