WordPress.org

Make WordPress Core

Changeset 7206


Ignore:
Timestamp:
03/10/2008 07:45:46 AM (13 years ago)
Author:
ryan
Message:

Show error data in message. Props DD32. see #5586

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/update.php

    r7130 r7206  
    6969
    7070function show_message($message) {
    71     if ( is_wp_error($message) )
    72         $message = $message->get_error_message();
     71    if( is_wp_error($message) ){
     72        if( $message->get_error_data() )
     73            $message = $message->get_error_message() . ': ' . $message->get_error_data();
     74        else
     75            $message = $message->get_error_message();
     76    }
    7377    echo "<p>$message</p>";
    7478}
Note: See TracChangeset for help on using the changeset viewer.