[wp-trac] [WordPress Trac] #25670: update_option() values persist in the database even when no longer exist in the code

WordPress Trac noreply at wordpress.org
Wed Oct 23 16:14:46 UTC 2013


#25670: update_option() values persist in the database even when no longer exist in
the code
-------------------------------------------+------------------------------
 Reporter:  carlesjove                     |       Owner:
     Type:  enhancement                    |      Status:  new
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  Database                       |     Version:  3.6.1
 Severity:  normal                         |  Resolution:
 Keywords:  2nd-opinion needs-patch close  |
-------------------------------------------+------------------------------

Comment (by mark-k):

 +1 to close.

 There are several problems with the idea
 1. If  the option is not in a DB how would you know what is its value when
 the code that uses it runs
 2. When the option is in the DB you can't know which plugin or theme
 created it which will make it even harder to guess from the code if it is
 still being used.
 3. users expect that options continue to exist in the DB if they
 accidentally deleted the plugin (maybe migrating to new host and haven't
 set the plugins yet), if options will be deleted automatically this will
 not work any longer.
 4. It is the responsibility of the plugin and theme authors to provide the
 functionality to delete the options before the plugin/theme is deleted, or
 when there is an upgrade and they stop using an option.

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


More information about the wp-trac mailing list