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
This commit is contained in:
Ryan Boren 2008-06-05 16:39:20 +00:00
parent dfe33306a1
commit c9fe66f9c8

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;