From b2e3f517e1bca2eb50c83dfdf0a816ff5d9c489f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 27 Mar 2019 14:03:51 +0000 Subject: [PATCH] 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 --- wp-admin/includes/upgrade.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index 5a9733f88c..4de9b109f4 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -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 ); } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 9de9d9e483..53eb439cb1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.