Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions inc/admin-pages/class-multisite-setup-admin-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ public function get_sections() {
'description' => __('Setting up your WordPress Multisite network...', 'multisite-ultimate'),
'next_label' => Core_Installer::get_instance()->all_done() ? __('Begin Ultimate Multisite Setup →', 'ultimate-multisite') : __('Install', 'ultimate-multisite'),
'disable_next' => true,
'handler' => [$this, 'handle_install_complete'],
'back' => false,
'fields' => [
'terms' => [
Expand Down Expand Up @@ -307,6 +308,27 @@ public function handle_configure(): void {
exit;
}

/**
* Handles the install step form submission.
*
* The JS auto-submits the form after all AJAX installation steps succeed.
* This handler redirects to the complete step with result=success so
* that section_complete() can show the success banner immediately,
* even when is_multisite() returns false because OPcache is serving
* a stale wp-config.php that doesn't yet have the MULTISITE constant.
*
* @since 2.6.1
* @return void
*/
public function handle_install_complete(): void {

$next_url = add_query_arg('result', 'success', $this->get_next_section_link());

wp_safe_redirect($next_url);

exit;
}

/**
* Completion section view.
*
Expand Down
Loading