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
This commit is contained in:
ryan 2008-06-05 16:39:20 +00:00
parent f7f3005004
commit f3de02cca6
1 changed files with 1 additions and 1 deletions

View File

@ -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;