Changeset 12480
- Timestamp:
- 12/22/2009 11:49:22 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/wp-db.php
r12410 r12480 1045 1045 * @since 2.5.0 1046 1046 * @uses $wp_version 1047 * @uses $required_mysql_version 1047 1048 * 1048 1049 * @return WP_Error … … 1050 1051 function check_database_version() 1051 1052 { 1052 global $wp_version ;1053 // Make sure the server has MySQL 4.1.21054 if ( version_compare($this->db_version(), '4.1.2', '<') )1055 return new WP_Error('database_version',sprintf(__('<strong>ERROR</strong>: WordPress % s requires MySQL 4.1.2 or higher'), $wp_version));1053 global $wp_version, $required_mysql_version; 1054 // Make sure the server has the required MySQL version 1055 if ( version_compare($this->db_version(), $required_mysql_version, '<') ) 1056 return new WP_Error('database_version',sprintf(__('<strong>ERROR</strong>: WordPress %1$s requires MySQL %2$s or higher'), $wp_version, $required_mysql_version)); 1056 1057 } 1057 1058
Note: See TracChangeset
for help on using the changeset viewer.