| @@ -81,8 +81,11 @@ | ||
| 81 | 81 | make_db_current_silent(); |
| 82 | 82 | populate_options(); |
| 83 | 83 | populate_roles(); |
| 84 | 84 | |
| 85 | + remove_all_actions('update_option_blogname'); | |
| 86 | + remove_all_actions('update_option_blogdescription'); | |
| 87 | + | |
| 85 | 88 | update_option( 'blogname', $blog_title ); |
| 86 | 89 | update_option( 'admin_email', $user_email ); |
| 87 | 90 | update_option( 'blog_public', $public ); |
| 88 | 91 | |
| @@ -109,9 +112,8 @@ | ||
| 109 | 112 | if ( ! $user_id && empty( $user_password ) ) { |
| 110 | 113 | $user_password = wp_generate_password( 12, false ); |
| 111 | 114 | $message = __( '<strong><em>Note that password</em></strong> carefully! It is a <em>random</em> password that was generated just for you.' ); |
| 112 | 115 | $user_id = wp_create_user( $user_name, $user_password, $user_email ); |
| 113 | - update_user_option( $user_id, 'default_password_nag', true, true ); | |
| 114 | 116 | $email_password = true; |
| 115 | 117 | } elseif ( ! $user_id ) { |
| 116 | 118 | // Password has been provided |
| 117 | 119 | $message = '<em>'.__( 'Your chosen password.' ).'</em>'; |