Changeset 2425 for trunk/wp-admin/profile.php
- Timestamp:
- 03/09/2005 10:49:42 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/profile.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/profile.php
r2166 r2425 52 52 } 53 53 54 if ($_POST["pass1"] == "") { 55 if ($_POST["pass2"] != "") 54 $pass1 = $_POST["pass1"]; 55 $pass2 = $_POST["pass2"]; 56 do_action('check_passwords', array($user_login, &$pass1, &$pass2)); 57 58 if ( '' == $pass1 ) { 59 if ( '' == $pass2 ) 56 60 die (__("<strong>ERROR</strong>: you typed your new password only once. Go back to type it twice.")); 57 61 $updatepassword = ""; 58 62 } else { 59 if ( $_POST["pass2"] == "")63 if ('' == $pass2) 60 64 die (__("<strong>ERROR</strong>: you typed your new password only once. Go back to type it twice.")); 61 if ( $_POST["pass1"] != $_POST["pass2"])65 if ( $pass1 != $pass2 ) 62 66 die (__("<strong>ERROR</strong>: you typed two different passwords. Go back to correct that.")); 63 $newuser_pass = $ _POST["pass1"];67 $newuser_pass = $pass1; 64 68 $updatepassword = "user_pass=MD5('$newuser_pass'), "; 65 69 wp_clearcookie(); … … 70 74 $newuser_lastname = wp_specialchars($_POST['newuser_lastname']); 71 75 $newuser_nickname = $_POST['newuser_nickname']; 72 $newuser_nicename = sanitize_title($newuser_nickname);76 $newuser_nicename = sanitize_title($newuser_nickname); 73 77 $newuser_icq = wp_specialchars($_POST['newuser_icq']); 74 78 $newuser_aim = wp_specialchars($_POST['newuser_aim']); … … 226 230 <td><textarea name="user_description" rows="5" id="textarea2" style="width: 99%; "><?php echo $profiledata->user_description ?></textarea></td> 227 231 </tr> 232 <?php 233 $show_password_fields = apply_filters('show_password_fields', true); 234 if ( $show_password_fields ) : 235 ?> 228 236 <tr> 229 237 <th scope="row"><?php _e('New <strong>Password</strong> (Leave blank to stay the same.)') ?></th> … … 232 240 <input type="password" name="pass2" size="16" value="" /></td> 233 241 </tr> 242 <?php endif; ?> 234 243 </table> 235 244 <p class="submit">
Note: See TracChangeset
for help on using the changeset viewer.