Description

And it is wrong. Theme can have several index.php files in subfolders. In such cases it looks like such:
If 60th line of wp-admin/includes/file.php to replace with this, i think the problem will be solved.

Hi Sergey. Thank you.
First i created this request in Github 1 year ago (which later was closed by you : ​https://github.com/WordPress/WordPress/pull/114 ), then they said that i should do the same in Core Trac page. Only today i remembered it and re-requested it here. :)