[wp-trac] Re: [WordPress Trac] #2268: get_option() on non-existent option always invokes new query

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 23 09:46:33 GMT 2007


#2268: get_option() on non-existent option always invokes new query
-------------------------------------+--------------------------------------
 Reporter:  markjaquith              |        Owner:  markjaquith
     Type:  defect                   |       Status:  assigned   
 Priority:  high                     |    Milestone:  2.2        
Component:  Optimization             |      Version:  2.1        
 Severity:  normal                   |   Resolution:             
 Keywords:  has-patch needs-testing  |  
-------------------------------------+--------------------------------------
Changes (by markjaquith):

  * priority:  normal => high
  * keywords:  => has-patch needs-testing
  * version:  2.0 => 2.1
  * component:  Administration => Optimization

Comment:

 Oldie but a goody!  I've freshened this up, and it seems to work just
 fine.  Let's get some testing in on this.

 This saves us at least one query for virgin WP installs (Default theme
 queries options that don't exist at first), and as I stated a year ago,
 certain themes or plugins can generate dozens and dozens of redundant
 queries without this fix.

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


More information about the wp-trac mailing list