[wp-trac] [WordPress Trac] #11747: make install_blog_defaults() use the stuff in the normal WP installer

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 20 22:20:23 UTC 2010


#11747: make install_blog_defaults() use the stuff in the normal WP installer
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |        Owner:          
     Type:  enhancement        |       Status:  reopened
 Priority:  normal             |    Milestone:  3.0     
Component:  Multisite          |      Version:  3.0     
 Severity:  normal             |   Resolution:          
 Keywords:                     |  
-------------------------------+--------------------------------------------
Changes (by jamescollins):

  * status:  closed => reopened
  * resolution:  fixed =>


Comment:

 In [12776], I noticed that line 245 of wp-admin/includes/upgrade.php
 contains:

 {{{
 $wpdb->update( $wpdb->options, array('option_value' => $user->user_email),
 array('option_name' => 'admin_email') );
 }}}

 Is there any reason why
 {{{
 update_option('admin_email', $user->user_email);
 }}}

 isn't used instead?

 I realise that the $wpdb->update() call comes from old WPMU code, but it'd
 be good to update it because it might cause problems for people using an
 object cache.

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


More information about the wp-trac mailing list