WordPress.org

Make WordPress Core

Ticket #10974: 10974.2.diff

File 10974.2.diff, 516 bytes (added by sivel, 6 years ago)

Alternate patch to not even use get_real_file_to_edit.

  • wp-admin/theme-editor.php

     
    3636        $file = $allowed_files[0]; 
    3737} 
    3838 
    39 $file = validate_file_to_edit($file, $allowed_files); 
    40 $real_file = get_real_file_to_edit($file); 
     39$real_file = validate_file_to_edit($file, $allowed_files); 
    4140$scrollto = isset($_REQUEST['scrollto']) ? (int) $_REQUEST['scrollto'] : 0; 
    4241 
    4342$file_show = basename( $file );