XPressME Integration Kit

Trac


Ignore:
Timestamp:
May 24, 2011, 9:14:03 AM (13 years ago)
Author:
toemon
Message:

Ver2.XからVer3.0へのアップグレード時wp-config.phpを上書きするようにする

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Ver2.5/xpressme_integration_kit/wp-content/plugins/xpressme/include/update_xpress.php

    r704 r773  
    2929 */ 
    3030function update_xpress($from, $to) { 
    31         global $wp_filesystem, $_old_xpress_files, $wpdb; 
     31        global $wp_filesystem, $_old_xpress_files, $wpdb, $modInfo; 
    3232        show_message( __('Disable overwrite of wp-config.php...', 'xpressme') ); 
     33         
     34        $mod_ver = $modInfo->get_module_version(); 
     35        // Rewrite wp-config.php when update it to Ver.3 from Ver.2.  
     36        if (version_compare($mod_ver, '3.0', '>=')){ 
     37            if (file_exists($wp_version_file)){ 
     38                include $wp_version_file; 
     39                $now_virsion = str_replace("ME", "", $wp_version); 
     40            } 
     41        } 
    3342        // remove wp-config.php from the new version into place. 
    3443        $wp_config = $from . 'wp-config.php'; 
Note: See TracChangeset for help on using the changeset viewer.