May as well change the rest too…
Plugin Version: 3.5.1
~line 990-something
if( $regplus['firstname'] && in_array('firstname', $regplus['profile_req']) ){
if(trim($_POST['firstname']) == ''){
$errors->add('empty_firstname', __('<strong>ERROR</strong>: Please enter your First Name.', 'regplus'));
}
}
if( $regplus['lastname'] && in_array('lastname', $regplus['profile_req']) ){
if(trim($_POST['lastname']) == ''){
$errors->add('empty_lastname', __('<strong>ERROR</strong>: Please enter your Last Name.', 'regplus'));
}
}
if( $regplus['website'] && in_array('website', $regplus['profile_req']) ){
if(trim($_POST['website']) == ''){
$errors->add('empty_website', __('<strong>ERROR</strong>: Please enter your Website URL.', 'regplus'));
}
}
if( $regplus['aim'] && in_array('aim', $regplus['profile_req']) ){
if(trim($_POST['aim']) == ''){
$errors->add('empty_aim', __('<strong>ERROR</strong>: Please enter your AIM username.', 'regplus'));
}
}
if( $regplus['yahoo'] && in_array('yahoo', $regplus['profile_req']) ){
if(trim($_POST['yahoo']) == ''){
$errors->add('empty_yahoo', __('<strong>ERROR</strong>: Please enter your Yahoo IM username.', 'regplus'));
}
}
if( $regplus['jabber'] && in_array('jabber', $regplus['profile_req']) ){
if(trim($_POST['jabber']) == ''){
$errors->add('empty_jabber', __('<strong>ERROR</strong>: Please enter your Jabber / Google Talk username.', 'regplus'));
}
}
if( $regplus['about'] && in_array('about', $regplus['profile_req']) ){
if(trim($_POST['about']) == ''){
$errors->add('empty_about', __('<strong>ERROR</strong>: Please enter some information About Yourself.', 'regplus'));
}
}
if (!empty($regplus_custom)) {
foreach( $regplus_custom as $k=>$v ){
if( $v['required'] && $v['reg'] ){
$id = $this->Label_ID($v['label']);
if(trim($_POST[$id]) == ''){
$errors->add('empty_' . $id, __('<strong>ERROR</strong>: Please enter your ' . $v['label'] . '.', 'regplus'));
}
}
}
}
if ( $regplus['password'] ){
if(trim($_POST['pass1']) == '' || trim($_POST['pass2']) == ''){
$errors->add('empty_password', __('<strong>ERROR</strong>: Please enter a Password.', 'regplus'));
}elseif($_POST['pass1'] !== $_POST['pass2']){
$errors->add('password_mismatch', __('<strong>ERROR</strong>: Your Password does not match.', 'regplus'));
}elseif(strlen($_POST['pass1'])<6){
$errors->add('password_length', __('<strong>ERROR</strong>: Your Password must be at least 6 characters in length.', 'regplus'));
}else{
$_POST['user_pw'] = $_POST['pass1'];
}
}
if ( $regplus['code'] && $regplus['code_req'] ){
if(trim($_POST['regcode']) == ''){
$errors->add('empty_regcode', __('<strong>ERROR</strong>: Please enter the Invitation Code.', 'regplus'));
}elseif( !in_array(strtolower($_POST['regcode']), $regplus['codepass']) ){
$errors->add('regcode_mismatch', __('<strong>ERROR</strong>: Your Invitation Code is incorrect.', 'regplus'));
}
}
if ( $regplus['captcha'] == 1 ){