[wp-trac] [WordPress Trac] #61277: PHP message: PHP Fatal error: Uncaught Error: Undefined constant "ABSPATH direct access to wp-includes/rss.php on line 19
WordPress Trac
noreply at wordpress.org
Mon May 27 13:36:51 UTC 2024
#61277: PHP message: PHP Fatal error: Uncaught Error: Undefined constant "ABSPATH
direct access to wp-includes/rss.php on line 19
---------------------------+------------------------------
Reporter: deepakrohilla | Owner: deepakrohilla
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: major | Resolution:
Keywords: has-patch | Focuses:
---------------------------+------------------------------
Comment (by SergeyBiryukov):
Hi there, thanks for the ticket!
A similar issue was addressed in [49619] / #35835 for `wp-includes/rss-
functions.php`.
Unless I'm missing something, calling directly pretty much any other file
in `wp-includes` or `wp-admin/includes` would lead to the same issue, so
if we want to add an early exit, it might be a good idea to do that in a
consistent way.
Related: #47154, #51806, #55944, #61214, #61286.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61277#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list