Plugin Directory

Changeset 342233


Ignore:
Timestamp:
02/08/2011 01:26:48 AM (15 years ago)
Author:
ktdreyer
Message:

better error reporting with WP_Error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • active-directory-authentication/trunk/ad-auth.php

    r62768 r342233  
    215215           
    216216            require_once(ABSPATH . WPINC . DIRECTORY_SEPARATOR . 'registration.php');
    217             wp_create_user($username, $password, $email);
     217            $error = wp_create_user($username, $password, $email);
     218            if ( is_wp_error($errors) )
     219                die($errors->get_error_message());
    218220            $user_id = username_exists($username);
    219221            if ( !$user_id ) {
Note: See TracChangeset for help on using the changeset viewer.