[wpmu-trac] [WordPress MU Trac] #1064: get_site_option() called twice inside update_site_option()

WordPress MU Trac wpmu-trac at lists.automattic.com
Thu Jul 16 23:57:25 UTC 2009


#1064: get_site_option() called twice inside update_site_option()
--------------------------+-------------------------------------------------
 Reporter:  jamescollins  |       Owner:  somebody
     Type:  defect        |      Status:  new     
 Priority:  normal        |   Milestone:  2.8.1a  
Component:  Optimisation  |     Version:  2.8.1   
 Severity:  normal        |    Keywords:          
--------------------------+-------------------------------------------------
 In [1884] and [1885] the "pre_update_site_option_*" filter was added.

 On line 3197, get_site_option() is called. It is then called again on line
 3199.

 A minor performance improvement can be made by avoiding the second
 get_site_option() call.

 See patch.

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/1064>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list