Ticket #3615: mysql-4-check.diff
File mysql-4-check.diff, 982 bytes (added by , 18 years ago) |
---|
-
wp-admin/upgrade-functions.php
11 11 function wp_install($blog_title, $user_name, $user_email, $public, $meta='') { 12 12 global $wp_rewrite; 13 13 14 wp_check_mysql_version(); 14 15 wp_cache_flush(); 15 16 make_db_current_silent(); 16 17 populate_options(); … … 134 135 if ( $wp_db_version == $wp_current_db_version ) 135 136 return; 136 137 138 wp_check_mysql_version(); 137 139 wp_cache_flush(); 138 140 make_db_current_silent(); 139 141 upgrade_all(); … … 1081 1083 } 1082 1084 } 1083 1085 1086 function wp_check_mysql_version() { 1087 global $wp_version; 1088 1089 // Make sure the server has MySQL 4.0 1090 $mysql_version = preg_replace('|[^0-9\.]|', '', @mysql_get_server_info()); 1091 if ( version_compare($mysql_version, '4.0.0', '<') ) 1092 die(sprintf(__('<strong>ERROR</strong>: WordPress %s requires MySQL 4.0.0 or higher'), $wp_version)); 1093 } 1094 1084 1095 ?>