[wp-trac] [WordPress Trac] #31744: All PHP files in the root should be dummy files, pointing to wp-includes versions
WordPress Trac
noreply at wordpress.org
Tue Mar 24 11:46:07 UTC 2015
#31744: All PHP files in the root should be dummy files, pointing to wp-includes
versions
-----------------------------+------------------------------
Reporter: markjaquith | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+------------------------------
Comment (by johnjamesjacoby):
I think some files would be exempt:
* wp-blog-header.php
* wp-config.php
* wp-config-sample.php
* my-hacks.php (if exists)
* wp.php (if exists)
* license.txt
* readme.html
Pros:
* Option to refactor wp-login.php, wp-signup.php, et all
* Helps make core updates safer/easier
Cons:
* Quirky includes abstraction (needs docs, education, etc…)
* Leaving mostly empty root files around still feels unclean, albeit
necessary backpat
A few alternatives:
* Add existing root files to rewrite rules and remove them completely
* Introduce wrapper function for requiring & including files with a once
option, essentially making everything pluggable
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31744#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list