WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/02/06 00:31:26 (12 years ago)
Author:
ryan
Message:

AJAXify user addition. Props mdawaffe. fixes #2624

File:
1 edited

Legend:

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

    r3112 r3677  
    1010$errors = edit_user($user_ID); 
    1111 
    12 if (count($errors) != 0) { 
    13     foreach ($errors as $id => $error) { 
    14         echo $error . '<br/>'; 
    15     } 
     12if ( is_wp_error( $errors ) ) { 
     13    foreach( $errors->get_error_codes() as $code) 
     14        foreach( $errors->get_error_messages($code) as $message ) 
     15            echo "$message<br />"; 
    1616    exit; 
    1717} 
Note: See TracChangeset for help on using the changeset viewer.