/** * Execute the console command. * * @return mixed */ public function handle() { // entrance $this->logo(); // prepare $this->bootstrapForMultisiteSetup(); // title $this->info('-- WordPress Multisite Install --'); // check if (wordpress_multisite_installed()) { $this->info('Multisite already installed.'); return; } // gather $config = $this->gather(); // deside if (!$this->deside($config)) { // cancel return; } // process $this->process($config); // done $this->line('Done.'); }
* WordPress データベーステーブルの接頭辞 * * それぞれにユニーク (一意) な接頭辞を与えることで一つのデータベースに複数の WordPress を * インストールすることができます。半角英数字と下線のみを使用してください。 */ global $table_prefix; $table_prefix = env('WP_TABLE_PREFIX', 'wp_'); /** * WordPress デバッグモード * * PHPデバッグ機能はLumen Frameworkが制御するため、常にfalseを指定してください。 */ define('WP_DEBUG', false); /** WordPress マルチサイト機能 */ if (env('WP_MULTISITE', false)) { if (defined('WP_INSTALLING_NETWORK') || wordpress_multisite_installed()) { define('WP_ALLOW_MULTISITE', true); define('MULTISITE', true); define('SUBDOMAIN_INSTALL', true); define('DOMAIN_CURRENT_SITE', env('WP_MULTISITE_DOMAIN', 'localhost')); define('PATH_CURRENT_SITE', '/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1); } else { define('WP_ALLOW_MULTISITE', true); } } else { if (env('WP_BACKENDURL')) { define('WP_SITEURL', env('WP_BACKENDURL')); } if (env('WP_SITEURL')) {