$_POST['pass1'], 'user_login' => $_POST['user-name'], 'user_url' => $_POST['url'], 'user_email' => $_POST['email'], 'first_name' => $_POST['first-name'], 'last_name' => $_POST['last-name'], 'description' => $_POST['description'], 'role' => get_option( 'default_role' ), ); if ( ($_POST['user-name'] ) && ( $_POST['email'] ) && ( $_POST['pass1'] ) && ( $_POST['pass1'] == $_POST['pass2'] ) ) : $new_user = wp_insert_user( $userdata ); else : if ( !$_POST['user-name'] ) $error = __('A username is required for registration.', 'hybrid'); elseif ( !$_POST['email'] ) $error = __('You must enter an email address.', 'hybrid'); elseif ( !$_POST['pass1'] ) $error = __('You must enter a password.', 'hybrid'); elseif ( !$_POST['pass2'] ) $error = __('You must enter your password twice.', 'hybrid'); elseif ( $_POST['pass1'] !== $_POST['pass2'] ) $error = __('You must enter the same password twice.', 'hybrid'); else $error = __('User registration failed. Please try again.', 'hybrid'); endif; endif; get_header(); ?>

*', 'hybrid'); ?>

'

' . __('Pages:', 'hybrid'), 'after' => '

' ) ); ?>