WordPress.org

Make WordPress Core

Ticket #10974: 10974.diff

File 10974.diff, 411 bytes (added by sivel, 5 years ago)

Theme files are full paths now. Don't prefix WP_CONTENT_DIR to $file in get_real_file_to_edit.

  • wp-admin/includes/file.php

     
    9292        if ('index.php' == $file || '.htaccess' == $file ) { 
    9393                $real_file = get_home_path() . $file; 
    9494        } else { 
    95                 $real_file = WP_CONTENT_DIR . $file; 
     95                $real_file = $file; 
    9696        } 
    9797 
    9898        return $real_file;