From c9fe66f9c894fff08a5dc729a334b4b906154678 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 5 Jun 2008 16:39:20 +0000 Subject: [PATCH] Use WP_CONTENT_DIR to fix theme editor file loading. Props ionfish. fixes #7097 git-svn-id: https://develop.svn.wordpress.org/trunk@8053 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index 9eed2bf98d..2e0925012d 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -36,7 +36,7 @@ function get_real_file_to_edit( $file ) { if ('index.php' == $file || '.htaccess' == $file ) { $real_file = get_home_path() . $file; } else { - $real_file = ABSPATH . $file; + $real_file = WP_CONTENT_DIR . $file; } return $real_file;