[wp-trac] [WordPress Trac] #62490: doing_action wrong in shutdown
WordPress Trac
noreply at wordpress.org
Wed Nov 20 18:16:17 UTC 2024
#62490: doing_action wrong in shutdown
-------------------------------------------------+-------------------------
Reporter: kkmuffme | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: General | Version:
Severity: minor | Resolution:
Keywords: has-patch has-unit-tests reporter- | Focuses:
feedback |
-------------------------------------------------+-------------------------
Comment (by kkmuffme):
Btw I'd even go a step further (as a separate ticket/PR) and check that if
`$wp_current_filter` isn't empty on shutdown, we should prevent the last
hooks callback from running again in shutdown (in case that hook would be
executed on shutdown), since calling exit (or throwing an error) in a
shutdown function, will also exit any/all shutdown functions that would
run after it - and since we already know that at this point in time, it's
easy enough to prevent.
The question is purely whether only this filter callback should be removed
or if that filter is called again, we just return and stop WP execution
(but not exit; to allow any other shutdown to run)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62490#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list