Move most root files to wp-includes and set an include internally
|Reported by:||sc0ttkclark||Owned by:|
This long list of wp-*.php files is a bit big. Isn't it time that we have those run through index.php too? Why do all of these files have to be in the root directory? If there's a reason, why not put all the files that are in the wp-includes there too?
So I say:
- Move files to wp-includes (if there's any conflict in naming, then of maybe have a subdir for these root files)
- WordPress internal linking should be set to include these files upon calling them (if permalinks turned on), otherwise all calls to them should be through index.php/wp-login/ etc and all page/post names with whese wp-* should be 'banned'
- Then we have 6 root files/folders in the installation: wp-admin,wp-content,wp-includes,index.php,license.txt,readme.html
So there's gotta be a way to do this, and I'm giving the 'go' person the preliminary idea. I'm going to make a plugin that does just this, but I'm sure my code won't be very useful since it's probably not the way you'll end up doing it.
Change History (5)
comment:2 jacobsantos — 5 years ago
- Priority changed from normal to lowest
- Severity changed from normal to major