[wp-trac] Re: [WordPress Trac] #5702: update_option should accept $autoload parameter

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 21 23:51:38 GMT 2008


#5702: update_option should accept $autoload parameter
------------------------+---------------------------------------------------
 Reporter:  adamrbrown  |        Owner:  anonymous
     Type:  defect      |       Status:  new      
 Priority:  normal      |    Milestone:  2.5      
Component:  General     |      Version:  2.3.2    
 Severity:  normal      |   Resolution:           
 Keywords:  has-patch   |  
------------------------+---------------------------------------------------
Comment (by adamrbrown):

 Taking over the 3d parameter is a bad idea. Check the
 [http://codex.wordpress.org/Function_Reference/update_option codex entry
 on update_option] for why it's there. Since there are probably plugins out
 there that expect the third and fourth args to look like that, changing
 them can only hurt.

 As for making the autoload parameter get recognized even for an existing
 option, sure, that wouldn't be a problem. It would take a little more work
 with the patch, though. I'll take a look at how difficult it would be.

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


More information about the wp-trac mailing list