WordPress.org

Make WordPress Core

Changeset 25796


Ignore:
Timestamp:
10/15/13 19:50:48 (3 years ago)
Author:
nacin
Message:

In show_message(), only print error data if it is a string.

see #25576, [25775].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/misc.php

    r25456 r25796  
    297297function show_message($message) { 
    298298    if ( is_wp_error($message) ){ 
    299         if ( $message->get_error_data() ) 
     299        if ( $message->get_error_data() && is_string( $message->get_error_data() ) ) 
    300300            $message = $message->get_error_message() . ': ' . $message->get_error_data(); 
    301301        else 
Note: See TracChangeset for help on using the changeset viewer.