diff --git wp-admin/includes/upgrade.php wp-admin/includes/upgrade.php
index 5d2e3fc..5f43785 100644
|
|
function wp_install( $blog_title, $user_name, $user_email, $public, $deprecated |
86 | 86 | |
87 | 87 | wp_cache_flush(); |
88 | 88 | |
89 | | /** |
90 | | * Fires after a site is fully installed. |
91 | | * |
92 | | * @since 3.9.0 |
93 | | * |
94 | | * @param WP_User $user The site owner. |
95 | | */ |
96 | | do_action( 'wp_install', $user ); |
97 | | |
98 | 89 | return array('url' => $guessurl, 'user_id' => $user_id, 'password' => $user_password, 'password_message' => $message); |
99 | 90 | } |
100 | 91 | endif; |
… |
… |
As a new WordPress user, you should go to <a href=\"%s\">your dashboard</a> to d |
250 | 241 | if ( !is_super_admin( $user_id ) && $user_id != 1 ) |
251 | 242 | $wpdb->delete( $wpdb->usermeta, array( 'user_id' => $user_id , 'meta_key' => $wpdb->base_prefix.'1_capabilities' ) ); |
252 | 243 | } |
| 244 | |
| 245 | /** |
| 246 | * Fires after a site is fully installed. |
| 247 | * |
| 248 | * Note: this hook fires once when WP itself is being installed, and once per |
| 249 | * additional sites on multisite installations. In both cases, it is fired in |
| 250 | * the context of the newly installed site. |
| 251 | * |
| 252 | * For multisite installations, see also the wpmu_new_blog hook, which is |
| 253 | * fired at the very end of wpmu_create_blog() in the context of wherever |
| 254 | * the new site got installed. |
| 255 | * |
| 256 | * @since 3.9.0 |
| 257 | * |
| 258 | * @param int $user_id The site owner's id. |
| 259 | */ |
| 260 | do_action( 'wp_install', $user_id ); |
253 | 261 | } |
254 | 262 | endif; |
255 | 263 | |