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:
parent
dfe33306a1
commit
c9fe66f9c8
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user