Changeset 24508
- Timestamp:
- 06/25/2013 11:14:50 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/user.php
r24125 r24508 44 44 45 45 $pass1 = $pass2 = ''; 46 if ( isset( $_POST['pass1'] ) )47 $pass1 = wp_unslash( $_POST['pass1'] );48 if ( isset( $_POST['pass2'] ) )49 $pass2 = wp_unslash( $_POST['pass2'] );46 if ( isset( $_POST['pass1'] ) ) 47 $pass1 = $_POST['pass1']; 48 if ( isset( $_POST['pass2'] ) ) 49 $pass2 = $_POST['pass2']; 50 50 51 51 if ( isset( $_POST['role'] ) && current_user_can( 'edit_users' ) ) { … … 125 125 126 126 /* Check for "\" in password */ 127 if ( false !== strpos( stripslashes($pass1), "\\" ) )127 if ( false !== strpos( wp_unslash( $pass1 ), "\\" ) ) 128 128 $errors->add( 'pass', __( '<strong>ERROR</strong>: Passwords may not contain the character "\\".' ), array( 'form-field' => 'pass1' ) ); 129 129 … … 160 160 } else { 161 161 $user_id = wp_insert_user( $user ); 162 wp_new_user_notification( $user_id, isset( $_POST['send_password'] ) ? $pass1: '' );162 wp_new_user_notification( $user_id, isset( $_POST['send_password'] ) ? wp_unslash( $pass1 ) : '' ); 163 163 } 164 164 return $user_id;
Note: See TracChangeset
for help on using the changeset viewer.