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

WordPress Trac wp-trac at lists.automattic.com
Tue Oct 16 23:41:12 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 DD32):

 I'm not sure what WordPress's stance on this is.. So someone please
 correct me if i'm wrong.

 rather than setting a variable and returning it at the end, You should be
 simply returning the WP_Error object at that point in time.

 With the current code, it'll create a retval with an error.. but it'll
 then continue to work on and follow the rest of the code regardless,
 Whereas before, it simply dies off at that point rather than completing.

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


More information about the wp-trac mailing list