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
This commit is contained in:
parent
ee7050d892
commit
82547b21b6
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue