[wp-trac] [WordPress Trac] #12144: Notices during install caused by get_transient() and made worse by wp_rand()

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 6 07:03:39 UTC 2010


#12144: Notices during install caused by get_transient() and made worse by
wp_rand()
--------------------------+-------------------------------------------------
 Reporter:  nacin         |       Owner:           
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  3.0      
Component:  Optimization  |     Version:           
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------
 During install, I saw about 75 of these:
 {{{
 Notice: Undefined variable: transient_option in C:\xampp\htdocs\ms\wp-
 includes\functions.php on line 690
 }}}

 This due to the way get_transient() doesn't properly handle WP_INSTALLING.
 Additionally, the errors multiplied because we fetch a transient in
 wp_rand() every time but may not always need it.

 Patch fixes get_transient() and optimizes wp_rand().

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


More information about the wp-trac mailing list