diff --git a/wp-admin/includes/misc.php b/wp-admin/includes/misc.php index 13382754e7..5a3b9706c7 100644 --- a/wp-admin/includes/misc.php +++ b/wp-admin/includes/misc.php @@ -296,7 +296,7 @@ function wp_reset_vars( $vars ) { */ function show_message($message) { if ( is_wp_error($message) ){ - if ( $message->get_error_data() ) + if ( $message->get_error_data() && is_string( $message->get_error_data() ) ) $message = $message->get_error_message() . ': ' . $message->get_error_data(); else $message = $message->get_error_message();