* @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 ) {
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
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.
'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',
'comment_moderation' => 0,
'moderation_notify' => 1,
'permalink_structure' => '',
+ 'rewrite_rules' => '',
'hack_file' => 0,
'blog_charset' => 'UTF-8',
'moderation_keys' => '',
// 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%/';
}
* @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.
*/