[wp-trac] Re: [WordPress Trac] #5166: use wp_die instead of echo/exit pair

WordPress Trac wp-trac at lists.automattic.com
Tue Oct 9 18:48:18 GMT 2007


#5166: use wp_die instead of echo/exit pair
------------------------+---------------------------------------------------
 Reporter:  nbachiyski  |        Owner:  westi   
     Type:  defect      |       Status:  assigned
 Priority:  low         |    Milestone:  2.4     
Component:  General     |      Version:  2.3     
 Severity:  minor       |   Resolution:          
 Keywords:  has-patch   |  
------------------------+---------------------------------------------------
Comment (by santosj):

 {{{
 if( is_wp_error( $result ) )
 {
     $result->die_with_message('');
 }
 }}}

 Pretty, short, and sweet

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5166#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list