[wp-trac] [WordPress Trac] #16964: New function network_delete_option($option) to help keep option clutter to a minimum

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 24 23:40:45 UTC 2011


#16964: New function network_delete_option($option) to help keep option clutter to
a minimum
-------------------------------------+------------------------------
 Reporter:  philipwalton             |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Multisite                |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  needs-testing has-patch  |
-------------------------------------+------------------------------

Comment (by nacin):

 Replying to [comment:2 philipwalton]:
 > Nacin, thanks for the feedback.
 >
 > I don't know if this matters, but where I'm currently using this
 function is not in a deactivation hook, but rather in the uninstall.php
 file. I've tested it on my multisite blog, and it does seem to work well.
 Are you recommending not running the code I've posted?

 Yes, on any site with a real number of blogs. Whether that's 18.6 million
 or even a few hundred.

 > As far as putting the onus on super admins to clean up options, while it
 would be nice, it doesn't seem reliable. How are they to know specifically
 what options each plugin they activate is saving to the database?

 This function isn't doing that either, mind you.

 > It seems to me that the onus should be on the plugin developers.

 It really can't be though. Not at the scale that multisite can operate on.

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


More information about the wp-trac mailing list