diff --git wp-admin/includes/upgrade.php wp-admin/includes/upgrade.php
index 5d2e3fc..aa81d51 100644
|
|
function wp_install( $blog_title, $user_name, $user_email, $public, $deprecated |
89 | 89 | /** |
90 | 90 | * Fires after a site is fully installed. |
91 | 91 | * |
| 92 | * Note: this hook only ever fires once when WP itself is being installed. |
| 93 | * It is never fired afterwards. |
| 94 | * |
| 95 | * To customize new sites on WP multisite installations, use either of: |
| 96 | * |
| 97 | * - wp_install_defaults |
| 98 | * - wpmu_new_blog |
| 99 | * |
92 | 100 | * @since 3.9.0 |
93 | 101 | * |
94 | | * @param WP_User $user The site owner. |
| 102 | * @param int $user_id The site owner's id. |
95 | 103 | */ |
96 | | do_action( 'wp_install', $user ); |
| 104 | do_action( 'wp_install', $user_id ); |
97 | 105 | |
98 | 106 | return array('url' => $guessurl, 'user_id' => $user_id, 'password' => $user_password, 'password_message' => $message); |
99 | 107 | } |
… |
… |
As a new WordPress user, you should go to <a href=\"%s\">your dashboard</a> to d |
250 | 258 | if ( !is_super_admin( $user_id ) && $user_id != 1 ) |
251 | 259 | $wpdb->delete( $wpdb->usermeta, array( 'user_id' => $user_id , 'meta_key' => $wpdb->base_prefix.'1_capabilities' ) ); |
252 | 260 | } |
| 261 | |
| 262 | /** |
| 263 | * Fires after a site's defaults are fully installed. |
| 264 | * |
| 265 | * Note: this hook fires once when WP itself is being installed, and once per |
| 266 | * additional sites on multisite installations. In both cases, it is fired in |
| 267 | * the context of the newly installed site. |
| 268 | * |
| 269 | * For multisite installations, see also the wpmu_new_blog hook, which is |
| 270 | * fired at the very end of wpmu_create_blog() in the context of wherever |
| 271 | * the new site got installed. |
| 272 | * |
| 273 | * Note 2: the user is marked as an administrator when the hook fires on a |
| 274 | * single site install; this is not the case on a multisite install. |
| 275 | * |
| 276 | * @since 3.9.0 |
| 277 | * |
| 278 | * @param int $user_id The site owner's id. |
| 279 | */ |
| 280 | do_action( 'wp_install_defaults', $user_id ); |
253 | 281 | } |
254 | 282 | endif; |
255 | 283 | |
diff --git wp-includes/ms-functions.php wp-includes/ms-functions.php
index b7b4b6a..6474fa6 100644
|
|
function wpmu_create_blog( $domain, $path, $title, $user_id, $meta = array(), $s |
1172 | 1172 | /** |
1173 | 1173 | * Fires immediately after a new site is created. |
1174 | 1174 | * |
| 1175 | * See also the wp_install_defaults hook, which fires before the current |
| 1176 | * blog's context is restored. |
| 1177 | * |
1175 | 1178 | * @since MU |
1176 | 1179 | * |
1177 | 1180 | * @param int $blog_id Blog ID. |