[wp-trac] [WordPress Trac] #61214: Hello Dolly : Uncaught exception 'Error' with message 'Call to undefined function add_action()
WordPress Trac
noreply at wordpress.org
Mon May 27 13:36:32 UTC 2024
#61214: Hello Dolly : Uncaught exception 'Error' with message 'Call to undefined
function add_action()
---------------------------+------------------------------
Reporter: deepakrohilla | Owner: deepakrohilla
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version:
Severity: normal | 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, #61277, #61286.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61214#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list