PluginProbe
Database Reset / 3.21
Database Reset v3.21
2.3.2 3.0 3.0.1 3.0.2 3.1 3.15 3.16 3.17 3.18 3.19 3.20 3.21 3.22 3.23 3.24 3.25 trunk 1.0 1.2 1.2.1 1.2.2 1.3 1.4 2.0 2.1 All 27 releases
← All changes | lib/helpers.php +3 -1 3.03.21 View file →
@@ -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>';