WordPress.org

Make WordPress Core

Ticket #25498: 25498.diff

File 25498.diff, 1.7 KB (added by DrewAPicture, 7 years ago)

Clean up

  • src/wp-admin/includes/schema.php

     
    330330        global $wpdb, $wp_db_version, $current_site, $wp_current_db_version;
    331331
    332332        $guessurl = wp_guess_url();
     333        /**
     334         * Fires before creating WordPress options and populating their default values.
     335         *
     336         * @since 2.6.0
     337         */
     338        do_action( 'populate_options' );
    333339
    334         do_action('populate_options');
    335 
    336340        if ( ini_get('safe_mode') ) {
    337341                // Safe mode can break mkdir() so use a flat structure by default.
    338342                $uploads_use_yearmonth_folders = 0;
     
    841845endif;
    842846
    843847/**
    844  * populate network settings
     848 * Populate network settings.
    845849 *
    846850 * @since 3.0.0
    847851 *
    848  * @param int $network_id id of network to populate
     852 * @param int $network_id ID of network to populate.
    849853 * @return bool|WP_Error True on success, or WP_Error on warning (with the install otherwise successful,
    850  *      so the error code must be checked) or failure.
     854 *                       so the error code must be checked) or failure.
    851855 */
    852856function populate_network( $network_id = 1, $domain = '', $email = '', $site_name = '', $path = '/', $subdomain_install = false ) {
    853857        global $wpdb, $current_site, $wp_db_version, $wp_rewrite;
     
    945949         *
    946950         * @since 3.7.0
    947951         *
    948          * @param array $sitemeta Associative of meta keys and values to be inserted.
    949          * @param int $network_id Network ID being created.
     952         * @param array $sitemeta   Associative array of network meta keys and values to be inserted.
     953         * @param int   $network_id ID of network to populate.
    950954         */
    951955        $sitemeta = apply_filters( 'populate_network_meta', $sitemeta, $network_id );
    952956