[wp-trac] [WordPress Trac] #63479: current_filter() can return false if fatal
WordPress Trac
noreply at wordpress.org
Mon May 26 19:42:04 UTC 2025
#63479: current_filter() can return false if fatal
-------------------------------------------------+-------------------------
Reporter: kkmuffme | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Plugins | Version:
Severity: trivial | Resolution:
Keywords: has-patch changes-requested needs- | Focuses:
test-info |
-------------------------------------------------+-------------------------
Comment (by debarghyabanerjee):
Hi @SirLouen, you can try out this snippet by simply adding it in the
functions.php, please let me know in case of any doubts. Thanks.
{{{#!php
<?php
set_exception_handler(
function ( $exception ) {
var_dump( current_filter() );
var_dump( current_action() );
wp_die();
}
);
throw new Exception( 'Test exception' );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63479#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list