Make WordPress Core

Changeset 45030


Ignore:
Timestamp:
03/27/2019 02:02:47 PM (6 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/upgrade.php

    r44732 r45030  
    31783178    $result = $wpdb->check_database_version();
    31793179    if ( is_wp_error( $result ) ) {
    3180         die( $result->get_error_message() );
     3180        wp_die( $result );
    31813181    }
    31823182}
Note: See TracChangeset for help on using the changeset viewer.