crazyboy
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: upgraded to WP 4.6 error phpmailer.php:946still no solutions?
Forum: Fixing WordPress
In reply to: upgraded to WP 4.6 error phpmailer.php:946this error still exist
i add some custom user meta field at registration form, it works fine in version 4.5.x, but crash in version 4.6.x & 4.7.x
Forum: Fixing WordPress
In reply to: error with registrationthat’s exactly what i do
it’s works fine in 4.6.x version but crash in 4.7.x versionForum: Fixing WordPress
In reply to: error with registrationfunction custom_user_register($user_id) {
$userdata = array();
$userdata[‘ID’] = $user_id;
if ($_POST[‘pass2’] !== ”) {
$userdata[‘user_pass’] = $_POST[‘pass2’];
}
wp_update_user($userdata);
if (!empty($_POST[‘phone’])) {
update_user_meta($user_id,’phone’,trim($_POST[‘phone’]));
}
if (!empty($_POST[‘bank’])) {
update_user_meta($user_id,’bank’,trim($_POST[‘bank’]));
}
if (!empty($_POST[‘account_no’])) {
update_user_meta($user_id,’account_no’,trim($_POST[‘account_no’]));
}
if (!empty($_POST[‘account_name’])) {
update_user_meta($user_id,’account_name’,trim($_POST[‘account_name’]));
}
}Forum: Fixing WordPress
In reply to: wp 4.6.1 error, bughere is the code
http://pastebin.com/af264mGBForum: Fixing WordPress
In reply to: wp 4.6.1 error, bug