Bootstrap/Load: Fix fatal error when passing a `WP_Error` to `wp_die()`.

This was introduced in [44466]. Also, this changeset adds tests for `_wp_die_process_input()` so that this never happens again.

Props dd32.
See #45933.

Built from https://develop.svn.wordpress.org/trunk@44690


git-svn-id: http://core.svn.wordpress.org/trunk@44521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Felix Arntz 2019-01-22 08:52:50 +00:00
parent cb25284b2f
commit c204ac4bc7
2 changed files with 2 additions and 2 deletions

View File

@ -3374,7 +3374,7 @@ function _wp_die_process_input( $message, $title = '', $args = array() ) {
$errors[] = array(
'code' => $error_code,
'message' => $error_message,
'data' => $error->get_error_data( $error_code ),
'data' => $message->get_error_data( $error_code ),
);
}
}

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.1-beta2-44689';
$wp_version = '5.1-beta2-44690';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.