[wp-trac] [WordPress Trac] #51806: Add an early exit for files with _deprecated_file() calls
WordPress Trac
noreply at wordpress.org
Wed Nov 18 13:25:23 UTC 2020
#51806: Add an early exit for files with _deprecated_file() calls
----------------------------+---------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.7
Component: General | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+---------------------
Comment (by ayeshrajans):
This is probably not an ideal place to discuss this, but I'd like to raise
a concern I had in my mind for a long time.
In WordPress, we have files that we can call directly from the browser
(for example `wp-admin/options-writing.php`), and ones that we cannot
(such as `wp-blog-header.php`). I totally agree that we need some sort of
consistency, because at the moment, it is not clear which files are meant
to be entry points, and which are to be included.
I wonder if there was any discussion to move the include files to where
they belong, or rename them (for example to `.inc` in Drupal style), so
they can be blocked from web server configuration and save ourselves of
the early-exit calls, while also getting some potential opcache benefits?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51806#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list