From 82547b21b6b973faa97172a556b2885bd73c5fbd Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 15 Oct 2013 19:51:10 +0000 Subject: [PATCH] In show_message(), only print error data if it is a string. see #25576, [25775]. Built from https://develop.svn.wordpress.org/trunk@25796 git-svn-id: http://core.svn.wordpress.org/trunk@25708 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/misc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();