WordPress.org

Make WordPress Core

Ticket #5263: profile_wp_die.patch

File profile_wp_die.patch, 495 bytes (added by filosofo, 11 years ago)
  • wp-admin/profile-update.php

     
    1212$errors = edit_user($user_ID);
    1313
    1414if ( is_wp_error( $errors ) ) {
     15        $error_msg = '';
    1516        foreach( $errors->get_error_messages() as $message )
    16                 echo "$message<br />";
    17         exit;
     17                $error_msg .= "$message<br />\n";
     18        wp_die($error_msg);
    1819}
    1920
    2021do_action('personal_options_update');