Database: Use `wp_die()` instead of `die()` in `wp_check_mysql_version()`, for more flexibility and consistency with other error messages in core.

Props spacedmonkey.
Fixes #45975.
Built from https://develop.svn.wordpress.org/trunk@45030


git-svn-id: http://core.svn.wordpress.org/trunk@44839 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-03-27 14:03:51 +00:00
parent 577dc2326a
commit b2e3f517e1
2 changed files with 2 additions and 2 deletions

View File

@ -3177,7 +3177,7 @@ function wp_check_mysql_version() {
global $wpdb;
$result = $wpdb->check_database_version();
if ( is_wp_error( $result ) ) {
die( $result->get_error_message() );
wp_die( $result );
}
}

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.2-alpha-45029';
$wp_version = '5.2-alpha-45030';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.