Changeset 513
- Timestamp:
- 11/07/2008 06:12:26 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-settings.php
r502 r513 25 25 // Form has been submitted and nonce checks out, lets do it. 26 26 27 if ( !empty($_POST['email'])) {27 if ( $_POST['email'] != '' ) { 28 28 $current_user->user_email = wp_specialchars( trim( $_POST['email'] )); 29 29 } 30 31 if ( !empty($_POST['pass1']) && !empty($_POST['pass2'])) {30 31 if ( $_POST['pass1'] != '' && $_POST['pass2'] != '' ) { 32 32 if ( $_POST['pass1'] == $_POST['pass2'] && !strpos( " " . $_POST['pass1'], "\\" ) ) { 33 33 $current_user->user_pass = $_POST['pass1']; … … 35 35 $pass_error = true; 36 36 } 37 } else if ( empty($_POST['pass1']) && !empty($_POST['pass2']) || !empty($_POST['pass1']) && empty($_POST['pass2'])) {37 } else if ( $_POST['pass1'] == '' && $_POST['pass2'] != '' || $_POST['pass1'] != '' && $_POST['pass2'] == '' ) { 38 38 $pass_error = true; 39 } else { 40 unset( $current_user->user_pass ); 39 41 } 40 42
Note: See TracChangeset
for help on using the changeset viewer.