WordPress.org

Make WordPress Core

Ticket #7097: theme_editor.diff

File theme_editor.diff, 420 bytes (added by ionfish, 10 years ago)
  • wp-admin/includes/file.php

     
    3636        if ('index.php' == $file || '.htaccess' == $file ) {
    3737                $real_file = get_home_path() . $file;
    3838        } else {
    39                 $real_file = ABSPATH . $file;
     39                $real_file = WP_CONTENT_DIR . $file;
    4040        }
    4141
    4242        return $real_file;