[wp-trac] Re: [WordPress Trac] #5210: Refactor plugin (de)activation code for unit testing

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 17 02:16:20 GMT 2007


#5210: Refactor plugin (de)activation code for unit testing
-------------------------+--------------------------------------------------
 Reporter:  Quandary     |        Owner:  anonymous
     Type:  enhancement  |       Status:  new      
 Priority:  normal       |    Milestone:  2.4      
Component:  General      |      Version:           
 Severity:  normal       |   Resolution:           
 Keywords:               |  
-------------------------+--------------------------------------------------
Comment (by Quandary):

 You are correct, sir. In most circumstances, I try to avoid multiple
 returns, so that set of code was purely reflex (I make an exception for
 error handling, so the fix was easy in this case ;). I've updated the
 patch to match the control flow of the original code.

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


More information about the wp-trac mailing list