mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-17 03:56:07 +00:00
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:
parent
f7f3005004
commit
f3de02cca6
@ -36,7 +36,7 @@ function get_real_file_to_edit( $file ) {
|
|||||||
if ('index.php' == $file || '.htaccess' == $file ) {
|
if ('index.php' == $file || '.htaccess' == $file ) {
|
||||||
$real_file = get_home_path() . $file;
|
$real_file = get_home_path() . $file;
|
||||||
} else {
|
} else {
|
||||||
$real_file = ABSPATH . $file;
|
$real_file = WP_CONTENT_DIR . $file;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $real_file;
|
return $real_file;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user