Replace dateYMDhour with user_registered. http://mosquito.wordpress.org/view.php?id=1121 Props: Andy Skelton
git-svn-id: http://svn.automattic.com/wordpress/trunk@2451 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8b3937b621
commit
f88ebc2808
|
@ -85,7 +85,7 @@ case "step1":
|
||||||
user_ip,
|
user_ip,
|
||||||
user_domain,
|
user_domain,
|
||||||
user_browser,
|
user_browser,
|
||||||
dateYMDhour,
|
user_registered,
|
||||||
user_level,
|
user_level,
|
||||||
user_idmode
|
user_idmode
|
||||||
) VALUES (
|
) VALUES (
|
||||||
|
|
|
@ -93,7 +93,7 @@ textarea,input,select {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$query = "INSERT INTO $wpdb->users (user_login,user_pass,user_nickname,user_email,user_url,user_ip,user_domain,user_browser,dateYMDhour,user_level,user_idmode) VALUES ('$user_login','$pass1','$user_nickname','$user_email','$user_url','$user_ip','$user_domain','$user_browser','$user_joindate','1','nickname')";
|
$query = "INSERT INTO $wpdb->users (user_login,user_pass,user_nickname,user_email,user_url,user_ip,user_domain,user_browser,user_registered,user_level,user_idmode) VALUES ('$user_login','$pass1','$user_nickname','$user_email','$user_url','$user_ip','$user_domain','$user_browser','$user_joindate','1','nickname')";
|
||||||
$result = mysql_query($query);
|
$result = mysql_query($query);
|
||||||
if ($result==false) {
|
if ($result==false) {
|
||||||
die ("<strong>ERROR</strong>: couldn't register an user!");
|
die ("<strong>ERROR</strong>: couldn't register an user!");
|
||||||
|
@ -152,7 +152,7 @@ textarea,input,select {
|
||||||
$user_email=addslashes("user@deleted.com");
|
$user_email=addslashes("user@deleted.com");
|
||||||
$user_url=addslashes("");
|
$user_url=addslashes("");
|
||||||
$user_joindate=addslashes($user_joindate);
|
$user_joindate=addslashes($user_joindate);
|
||||||
$query = "INSERT INTO $wpdb->users (user_login,user_pass,user_nickname,user_email,user_url,user_ip,user_domain,user_browser,dateYMDhour,user_level,user_idmode) VALUES ('$user_login','$pass1','$user_nickname','$user_email','$user_url','$user_ip','$user_domain','$user_browser','$user_joindate','0','nickname')";
|
$query = "INSERT INTO $wpdb->users (user_login,user_pass,user_nickname,user_email,user_url,user_ip,user_domain,user_browser,user_registered,user_level,user_idmode) VALUES ('$user_login','$pass1','$user_nickname','$user_email','$user_url','$user_ip','$user_domain','$user_browser','$user_joindate','0','nickname')";
|
||||||
$result = mysql_query($query);
|
$result = mysql_query($query);
|
||||||
if ($result==false) {
|
if ($result==false) {
|
||||||
die ("<strong>ERROR</strong>: couldn't register an user!");
|
die ("<strong>ERROR</strong>: couldn't register an user!");
|
||||||
|
|
|
@ -131,7 +131,7 @@ function upgrade_110() {
|
||||||
$wpdb->query("UPDATE $wpdb->posts SET post_modified = post_date");
|
$wpdb->query("UPDATE $wpdb->posts SET post_modified = post_date");
|
||||||
$wpdb->query("UPDATE $wpdb->posts SET post_modified_gmt = DATE_ADD(post_modified, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE) WHERE post_modified != '0000-00-00 00:00:00'");
|
$wpdb->query("UPDATE $wpdb->posts SET post_modified_gmt = DATE_ADD(post_modified, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE) WHERE post_modified != '0000-00-00 00:00:00'");
|
||||||
$wpdb->query("UPDATE $wpdb->comments SET comment_date_gmt = DATE_ADD(comment_date, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)");
|
$wpdb->query("UPDATE $wpdb->comments SET comment_date_gmt = DATE_ADD(comment_date, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)");
|
||||||
$wpdb->query("UPDATE $wpdb->users SET user_registered = DATE_ADD(dateYMDhour, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)");
|
$wpdb->query("UPDATE $wpdb->users SET user_registered = DATE_ADD(user_registered, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue