wp_die() filter broken, doesn't pass args
|Reported by:||somatic||Owned by:|
There is a filter to manipulate the output of wp_die(), but it is setup incorrectly. When you hook it, the only arg that is passed is the name of the default handler function, which renders the filter useless, as you can't manipulate the message, title, and other display output.
Here's the fix:
wp-includes/functions.php, line 2661
$function = apply_filters( 'wp_die_handler', '_default_wp_die_handler');
$function = apply_filters( 'wp_die_handler', $message, $title, $args);