Ticket #9669: 9669.3.diff
File 9669.3.diff, 1.5 KB (added by , 16 years ago) |
---|
-
wp-admin/includes/user.php
183 183 $user_id = wp_update_user( get_object_vars( $user )); 184 184 } else { 185 185 $user_id = wp_insert_user( get_object_vars( $user )); 186 wp_new_user_notification( $user_id );186 wp_new_user_notification( $user_id, isset($_POST['send_password']) ? $pass1 : '' ); 187 187 } 188 188 return $user_id; 189 189 } … … 830 830 echo '</p></div>'; 831 831 } 832 832 833 ?> 833 ?> 834 No newline at end of file -
wp-admin/user-new.php
87 87 if ( ! isset($$var) ) 88 88 $$var = isset($_POST[$post_field]) ? stripslashes($_POST[$post_field]) : ''; 89 89 } 90 $new_user_send_password = !$_POST || isset($_POST['send_password']); 90 91 ?> 91 92 <table class="form-table"> 92 93 <tr class="form-field form-required"> … … 117 118 <br /> 118 119 <input name="pass2" type="password" id="pass2" autocomplete="off"/></td> 119 120 </tr> 121 <tr> 122 <th scope="row"><label for="send_password"><?php _e('Send Password?') ?></label></th> 123 <td><label for="send_password"><input type="checkbox" name="send_password" id="send_password" <?php checked($new_user_send_password, true); ?> /> <?php _e('Send this password to the new user by email.'); ?></label></td> 124 </tr> 120 125 <?php endif; ?> 121 126 122 127 <tr class="form-field">