[wp-trac] [WordPress Trac] #11956: Implement backward compatible site options and transients

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 20 14:04:53 UTC 2010

#11956: Implement backward compatible site options and transients
 Reporter:  Denis-de-Bernardy  |       Owner:             
     Type:  enhancement        |      Status:  new        
 Priority:  normal             |   Milestone:  3.0        
Component:  General            |     Version:  3.0        
 Severity:  major              |    Keywords:  2nd-opinion
 I'm watching the number of site options and site transients grow with
 increasing worry, thinking these will break numbers of plugins that use
 them in a way or another.

 Suggestion to improve backwards compatibility:

  1. We maintain an internal list of site option and site transient names.
  2. When get_option() and get_transient() is called, we check if it's a
 site option/transient
  3. If so, we return get_site_option() or get_site_transient() accordingly

 In other words, if a plugin calls get_option(siteurl), WP translates this
 internally into get_site_option(siteurl), ''and applies the old-style
 filters in addition''.


Ticket URL: <http://core.trac.wordpress.org/ticket/11956>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list