Ticket #41685: 41685.diff
File 41685.diff, 977 bytes (added by , 7 years ago) |
---|
-
src/wp-admin/includes/upgrade.php
433 433 wp_cache_flush(); 434 434 435 435 if ( is_multisite() ) { 436 if ( $wpdb->get_row( "SELECT blog_id FROM {$wpdb->blog_versions} WHERE blog_id = '{$wpdb->blogid}'" ) ) 436 if ( $wpdb->get_row( "SELECT blog_id FROM {$wpdb->blog_versions} WHERE blog_id = '{$wpdb->blogid}'" ) ) { 437 437 $wpdb->query( "UPDATE {$wpdb->blog_versions} SET db_version = '{$wp_db_version}' WHERE blog_id = '{$wpdb->blogid}'" ); 438 else438 } else { 439 439 $wpdb->query( "INSERT INTO {$wpdb->blog_versions} ( `blog_id` , `db_version` , `last_updated` ) VALUES ( '{$wpdb->blogid}', '{$wp_db_version}', NOW());" ); 440 } 441 update_site_meta( get_current_blog_id(), 'db_version', $wp_db_version ); 442 update_site_meta( get_current_blog_id(), 'db_last_updated', microtime() ); 440 443 } 441 444 442 445 /**