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:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user