Make WordPress Core

Ticket #1487: wp-register-uniq-patch.txt

File wp-register-uniq-patch.txt, 672 bytes (added by davidhouse, 21 years ago)

Changed text to 'Please supply another'.

Line 
1--- wp-register.php.original 2005-07-02 05:00:17.000000000 +0300
2+++ wp-register.php 2005-07-02 05:01:14.000000000 +0300
3@@ -47,6 +47,12 @@
4 die (__('<strong>ERROR</strong>: This username is already registered, please choose another one.'));
5 }
6
7+ /* checking the email isn't already used by another user */
8+ $result = $wpdb->get_results("SELECT user_email FROM $wpdb->users WHERE user_email = '$user_email'");
9+ if (count($result) >= 1) {
10+ die (__('<strong>ERROR</strong>: This email address is already registered, please supply another.'));
11+ }
12+
13 $user_ip = $_SERVER['REMOTE_ADDR'] ;
14
15 $user_browser = $wpdb->escape($_SERVER['HTTP_USER_AGENT']);