X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/03f2fa83c13c1b532284205fa7efcab9b8b2c41f..784f914b1e4b1c62d6657e86397c2e83bcee4295:/wp-admin/includes/schema.php?ds=sidebyside diff --git a/wp-admin/includes/schema.php b/wp-admin/includes/schema.php index 4f49dc21..b043e49b 100644 --- a/wp-admin/includes/schema.php +++ b/wp-admin/includes/schema.php @@ -30,7 +30,7 @@ $charset_collate = $wpdb->get_charset_collate(); * @global wpdb $wpdb WordPress database abstraction object. * * @param string $scope Optional. The tables for which to retrieve SQL. Can be all, global, ms_global, or blog tables. Defaults to all. - * @param int $blog_id Optional. The blog ID for which to retrieve SQL. Default is the current blog ID. + * @param int $blog_id Optional. The site ID for which to retrieve SQL. Default is the current site ID. * @return string The SQL needed to create the requested tables. */ function wp_get_db_schema( $scope = 'all', $blog_id = null ) { @@ -204,7 +204,8 @@ CREATE TABLE $wpdb->posts ( display_name varchar(250) NOT NULL default '', PRIMARY KEY (ID), KEY user_login_key (user_login), - KEY user_nicename (user_nicename) + KEY user_nicename (user_nicename), + KEY user_email (user_email) ) $charset_collate;\n"; // Multisite users table @@ -223,7 +224,8 @@ CREATE TABLE $wpdb->posts ( deleted tinyint(2) NOT NULL default '0', PRIMARY KEY (ID), KEY user_login_key (user_login), - KEY user_nicename (user_nicename) + KEY user_nicename (user_nicename), + KEY user_email (user_email) ) $charset_collate;\n"; // Usermeta. @@ -397,7 +399,7 @@ function populate_options() { 'siteurl' => $guessurl, 'home' => $guessurl, 'blogname' => __('My Site'), - /* translators: blog tagline */ + /* translators: site tagline */ 'blogdescription' => __('Just another WordPress site'), 'users_can_register' => 0, 'admin_email' => 'you@example.com', @@ -427,6 +429,7 @@ function populate_options() { 'comment_moderation' => 0, 'moderation_notify' => 1, 'permalink_structure' => '', + 'rewrite_rules' => '', 'hack_file' => 0, 'blog_charset' => 'UTF-8', 'moderation_keys' => '', @@ -528,7 +531,7 @@ function populate_options() { // 3.0 multisite if ( is_multisite() ) { - /* translators: blog tagline */ + /* translators: site tagline */ $options[ 'blogdescription' ] = sprintf(__('Just another %s site'), get_current_site()->site_name ); $options[ 'permalink_structure' ] = '/%year%/%monthnum%/%day%/%postname%/'; } @@ -888,7 +891,13 @@ endif; * @global int $wp_db_version * @global WP_Rewrite $wp_rewrite * - * @param int $network_id ID of network to populate. + * @param int $network_id ID of network to populate. + * @param string $domain The domain name for the network (eg. "example.com"). + * @param string $email Email address for the network administrator. + * @param string $site_name The name of the network. + * @param string $path Optional. The path to append to the network's domain name. Default '/'. + * @param bool $subdomain_install Optional. Whether the network is a subdomain install or a subdirectory install. + * Default false, meaning the network is a subdirectory install. * @return bool|WP_Error True on success, or WP_Error on warning (with the install otherwise successful, * so the error code must be checked) or failure. */