[wp-trac] [WordPress Trac] #13911: update_option bug

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 15 21:13:04 UTC 2010


#13911: update_option bug
--------------------------+-------------------------------------------------
 Reporter:  jowo          |       Owner:                         
     Type:  defect (bug)  |      Status:  new                    
 Priority:  normal        |   Milestone:  Unassigned             
Component:  General       |     Version:  3.0                    
 Severity:  normal        |    Keywords:  reporter-feedback close
--------------------------+-------------------------------------------------

Comment(by jowo):

 Ok I finally tracked down the bug I was having. It was an error on my
 part.

 In my plugin I did update_option() and below it I was running
 wp_delete_post(1, TRUE); which in turn reset those two options and
 actually deleted the "page_on_front" in database.

 I guess because they are related and wp_delete_post() takes care of that.
 I thought it only worked with the wp_term* tables not options.

 So works as intended.

 Btw seems redundant to have two functions doing the exact same thing?
 update_option() seems to work as should.

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


More information about the wp-trac mailing list