Make WordPress Core

Ticket #25762: 25762.6.diff

File 25762.6.diff, 1.4 KB (added by Denis-de-Bernardy, 11 years ago)
  • wp-admin/includes/upgrade.php

    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 
    8686
    8787        wp_cache_flush();
    8888
    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 
    9889        return array('url' => $guessurl, 'user_id' => $user_id, 'password' => $user_password, 'password_message' => $message);
    9990}
    10091endif;
    As a new WordPress user, you should go to <a href=\"%s\">your dashboard</a> to d 
    250241                if ( !is_super_admin( $user_id ) && $user_id != 1 )
    251242                        $wpdb->delete( $wpdb->usermeta, array( 'user_id' => $user_id , 'meta_key' => $wpdb->base_prefix.'1_capabilities' ) );
    252243        }
     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 );
    253261}
    254262endif;
    255263