Changeset 1139 for trunk/wp-admin/includes/upgrade.php
- Timestamp:
- 10/30/07 16:49:38 (1 year ago)
- Files:
-
- trunk/wp-admin/includes/upgrade.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/includes/upgrade.php
r1125 r1139 1254 1254 1255 1255 function wp_check_mysql_version() { 1256 global $wpdb; 1257 $result = $wpdb->check_database_version(); 1258 if ( is_wp_error( $result ) ) 1259 die( $result->get_error_message() ); 1256 global $wp_version; 1257 1258 // Make sure the server has MySQL 4.0 1259 $mysql_version = preg_replace('|[^0-9\.]|', '', @mysql_get_server_info()); 1260 if ( version_compare($mysql_version, '4.0.0', '<') ) 1261 die(sprintf(__('<strong>ERROR</strong>: WordPress %s requires MySQL 4.0.0 or higher'), $wp_version)); 1260 1262 } 1261 1263
