From ca6d3c328528c888b9bc64413726feaeb6900638 Mon Sep 17 00:00:00 2001 From: saxmatt 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: http://svn.automattic.com/wordpress/trunk@1667 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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')));