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

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 24 15:34:01 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):

 I found some time to review this again. Attached you'll find a patch that
 updates the test_bogus_role and an addition to _dis/_enable_wp_die() so
 that it can be checked for having died. In this testcase, the test will
 now fail if the script does not die.

 Related: #2914

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


More information about the wp-trac mailing list