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

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 15 10:35:33 UTC 2010


#15428: wp_die() filter broken, doesn't pass args
--------------------------+-------------------------------------------------
 Reporter:  somatic       |        Owner:         
     Type:  defect (bug)  |       Status:  closed 
 Priority:  normal        |    Milestone:         
Component:  General       |      Version:  3.0.1  
 Severity:  normal        |   Resolution:  invalid
 Keywords:  wp_die        |  
--------------------------+-------------------------------------------------

Comment(by westi):

 The reason it is a filter and not an action is we only want one thing to
 be called.

 I'm not convinced a filter should be made available to filter the
 message/title/args of wp_die.

 If you want to do that you can just add you own handler.

 Your handler can still call the default function.

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


More information about the wp-trac mailing list