From b47e9a5139c721f1769396d2788ce61ca59e8b39 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Thu, 16 Sep 2004 10:26:39 +0000 Subject: [PATCH] More new_users_can_blog fixes, including to the registration form and resolution to http://mosquito.wordpress.org/bug_view_page.php?bug_id=0000280 git-svn-id: https://develop.svn.wordpress.org/trunk@1667 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit-form-advanced.php | 4 ++-- wp-register.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 56a831e002..7f2da1a591 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -66,7 +66,7 @@ window.onload = focusit;
- + @@ -124,7 +124,7 @@ edCanvas = document.getElementById('content'); - + escape($user_nickname); $user_nicename = sanitize_title($user_nickname); $now = gmdate('Y-m-d H:i:s'); - $new_users_can_blog = get_settings('new_users_can_blog'); + if (get_settings('new_users_can_blog') >= 1) $user_level = 1; $result = $wpdb->query("INSERT INTO $wpdb->users (user_login, user_pass, user_nickname, user_email, user_ip, user_browser, dateYMDhour, user_level, user_idmode, user_nicename) VALUES - ('$user_login', MD5('$pass1'), '$user_nickname', '$user_email', '$user_ip', '$user_browser', '$now', '$new_users_can_blog', 'nickname', '$user_nicename')"); + ('$user_login', MD5('$pass1'), '$user_nickname', '$user_email', '$user_ip', '$user_browser', '$now', '$user_level', 'nickname', '$user_nicename')"); if ($result == false) { die (sprintf(__('ERROR: Couldn’t register you... please contact the webmaster !'), get_settings('admin_email')));