Ticket #5127: mysql_ grouping.patch
| File mysql_ grouping.patch, 1.6 KB (added by ComputerGuru, 5 years ago) |
|---|
-
wp-admin/includes/schema.php
3 3 4 4 $charset_collate = ''; 5 5 6 if ( version_compare( mysql_get_server_info(), '4.1.0', '>=') ) {6 if ( version_compare($wpdb->server_version(), '4.1.0', '>=') ) { 7 7 if ( ! empty($wpdb->charset) ) 8 8 $charset_collate = "DEFAULT CHARACTER SET $wpdb->charset"; 9 9 if ( ! empty($wpdb->collate) ) -
wp-admin/includes/upgrade.php
1239 1239 } 1240 1240 1241 1241 function wp_check_mysql_version() { 1242 global $wp_version ;1242 global $wp_version, $wpdb; 1243 1243 1244 1244 // Make sure the server has MySQL 4.0 1245 $mysql_version = preg_replace('|[^0-9\.]|', '', @ mysql_get_server_info());1245 $mysql_version = preg_replace('|[^0-9\.]|', '', @$wpdb->server_version()); 1246 1246 if ( version_compare($mysql_version, '4.0.0', '<') ) 1247 1247 die(sprintf(__('<strong>ERROR</strong>: WordPress %s requires MySQL 4.0.0 or higher'), $wp_version)); 1248 1248 } … … 1259 1259 } 1260 1260 } 1261 1261 1262 ?> 1262 ?> 1263 No newline at end of file -
wp-includes/wp-db.php
403 403 return false; 404 404 wp_die($message); 405 405 } 406 407 function server_version() { 408 return mysql_get_server_info(); 409 } 410 411 406 412 } 407 413 408 414 if ( ! isset($wpdb) )
