Changeset 247
- Timestamp:
- Jun 3, 2009, 3:32:56 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/include/onupdate.php
r232 r247 44 44 } else { 45 45 require_once $path . 'wp-config.php'; 46 } 47 // upgrade WordPress 48 49 $site_url= XOOPS_URL."/modules/".$mydirname; 50 update_option("home", $site_url); // Site_url is set again. 51 update_option("siteurl", $site_url); 52 53 require_once($mydirpath . '/wp-admin/upgrade-functions.php'); 54 55 if ( get_db_version($mydirname) != $wp_db_version ){ 56 if( function_exists( 'wp_upgrade' ) ) { 57 wp_upgrade(); 58 } else { 59 wp_cache_flush(); 60 make_db_current_silent(); 61 upgrade_all(); 62 wp_cache_flush(); 63 } 64 $msgs[] = 'Upgrade Wordpress Database Ver.' . get_db_version($mydirname) .' to' . $wp_db_version; 46 65 } 47 66 … … 137 156 $msgs = array_merge($msgs,$t_mess); 138 157 139 // upgrade WordPress140 141 $site_url= XOOPS_URL."/modules/".$mydirname;142 update_option("home", $site_url); // Site_url is set again.143 update_option("siteurl", $site_url);144 145 require_once($mydirpath . '/wp-admin/upgrade-functions.php');146 147 if ( get_db_version($mydirname) != $wp_db_version ){148 if( function_exists( 'wp_upgrade' ) ) {149 wp_upgrade();150 } else {151 wp_cache_flush();152 make_db_current_silent();153 upgrade_all();154 wp_cache_flush();155 }156 $msgs[] = 'Upgrade Wordpress Database Ver.' . get_db_version($mydirname) .' to' . $wp_db_version;157 }158 158 159 159 /* activate the xpressme plugin */
Note: See TracChangeset
for help on using the changeset viewer.