Make WordPress Core

Ticket #16243: 16243.2.diff

File 16243.2.diff, 621 bytes (added by solarissmoke, 14 years ago)
  • wp-admin/edit-tags.php

     
    142142        if ( $ret && !is_wp_error( $ret ) )
    143143                $location = add_query_arg( 'message', 3, $location );
    144144        else
    145                 $location = add_query_arg( 'message', 5, $location );
     145                wp_die( __('The item could not be updated. ') . $ret->get_error_message() . '</p><p><a href="' . wp_get_referer() . '" onclick="javascript:history.go(-1);return false;">' . __('Go back to try again') . '</a>' );
    146146
    147147        wp_redirect( $location );
    148148        exit;