From f3de02cca65552b5dca38452a83b2f7ef3583b30 Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@8053 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 9eed2bf98..2e0925012 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;