[wp-trac] [WordPress Trac] #11892: replace die() and exit() with a pluggable wp_exit(); function

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 21 20:58:39 UTC 2010


#11892: replace die() and exit() with a pluggable wp_exit(); function
--------------------------+-------------------------------------------------
 Reporter:  hakre         |       Owner:  westi
     Type:  defect (bug)  |      Status:  new  
 Priority:  normal        |   Milestone:  3.0  
Component:  Unit Tests    |     Version:  3.0  
 Severity:  blocker       |    Keywords:       
--------------------------+-------------------------------------------------

Comment(by hakre):

 wp_die related test that "throws" it is:

 {{{
     // a role that doesn't exist
     function test_bogus_role()
 }}}

 in WPTestUserCapabilities. We really need to make wp_die hookable for
 testing. I can offer to write a patch for that.

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


More information about the wp-trac mailing list