Index: /branches/Ver2.5/xpressme_integration_kit/wp-content/plugins/xpressme/include/update_xpress.php
===================================================================
--- /branches/Ver2.5/xpressme_integration_kit/wp-content/plugins/xpressme/include/update_xpress.php	(revision 772)
+++ /branches/Ver2.5/xpressme_integration_kit/wp-content/plugins/xpressme/include/update_xpress.php	(revision 773)
@@ -29,6 +29,15 @@
  */
 function update_xpress($from, $to) {
-	global $wp_filesystem, $_old_xpress_files, $wpdb;
+	global $wp_filesystem, $_old_xpress_files, $wpdb, $modInfo;
 	show_message( __('Disable overwrite of wp-config.php...', 'xpressme') );
+	
+	$mod_ver = $modInfo->get_module_version();
+	// Rewrite wp-config.php when update it to Ver.3 from Ver.2. 
+	if (version_compare($mod_ver, '3.0', '>=')){
+	    if (file_exists($wp_version_file)){
+	    	include $wp_version_file;
+	    	$now_virsion = str_replace("ME", "", $wp_version);
+	    }
+	}
 	// remove wp-config.php from the new version into place.
 	$wp_config = $from . 'wp-config.php';
