In show_message(), only print error data if it is a string.
see #25576, [25775]. git-svn-id: https://develop.svn.wordpress.org/trunk@25796 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0d72238343
commit
55d176020b
@ -296,7 +296,7 @@ function wp_reset_vars( $vars ) {
|
|||||||
*/
|
*/
|
||||||
function show_message($message) {
|
function show_message($message) {
|
||||||
if ( is_wp_error($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();
|
$message = $message->get_error_message() . ': ' . $message->get_error_data();
|
||||||
else
|
else
|
||||||
$message = $message->get_error_message();
|
$message = $message->get_error_message();
|
||||||
|
Loading…
Reference in New Issue
Block a user