[wp-trac] [WordPress Trac] #51806: Add an early exit for files with _deprecated_file() calls
WordPress Trac
noreply at wordpress.org
Tue Nov 17 19:32:08 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 | Keywords:
Focuses: |
----------------------------+--------------------
Background: #35835
[49619] added an early exit when calling the `wp-includes/rss-
functions.php` file directly to avoid unnecessary errors in server logs.
There are ~30 other files in core with `_deprecated_file()` calls so it
seems like a good idea to have a consistent policy for the other
instances.
That said, it's not limited to `_deprecated_file()`, as noted in
comment:3:ticket:35835 and comment:1:ticket:35835:
> You'll get a similar error if you access `wp-includes/default-
filters.php` or any number of others too potentially.
So perhaps other files that can clutter server logs with unnecessary
errors would benefit from an early exit too.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51806>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list