[wp-trac] [WordPress Trac] #15428: wp_die() filter broken, doesn't pass args

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 15 00:06:15 UTC 2010


#15428: wp_die() filter broken, doesn't pass args
--------------------------+-------------------------------------------------
 Reporter:  somatic       |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.0.1          
 Severity:  normal        |    Keywords:  wp_die         
--------------------------+-------------------------------------------------
 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

 current:

 {{{
 $function = apply_filters( 'wp_die_handler', '_default_wp_die_handler');
 }}}

 fix:

 {{{
 $function = apply_filters( 'wp_die_handler', $message, $title, $args);
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15428>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list