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. git-svn-id: https://develop.svn.wordpress.org/trunk@45030 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f4e535df1b
commit
368cd01fa7
@ -3177,7 +3177,7 @@ function wp_check_mysql_version() {
|
|||||||
global $wpdb;
|
global $wpdb;
|
||||||
$result = $wpdb->check_database_version();
|
$result = $wpdb->check_database_version();
|
||||||
if ( is_wp_error( $result ) ) {
|
if ( is_wp_error( $result ) ) {
|
||||||
die( $result->get_error_message() );
|
wp_die( $result );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user