From fc98619638ae4ab50a1a22823232a12ea2281b28 Mon Sep 17 00:00:00 2001
From: Carl Alberto
Date: Tue, 9 May 2023 06:58:45 +0800
Subject: [PATCH 1/3] Update pantheon.php to declare WP_ALLOW_MULTISITE before
loading network config
---
pantheon.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pantheon.php b/pantheon.php
index c94afed..ca485ac 100644
--- a/pantheon.php
+++ b/pantheon.php
@@ -25,9 +25,6 @@
if ( defined( 'WP_CLI' ) && WP_CLI ) {
require_once 'inc/cli.php';
}
- if ( defined( 'MULTISITE' ) && defined( 'WP_ALLOW_MULTISITE' ) && WP_ALLOW_MULTISITE ) {
- require_once 'inc/pantheon-network-setup.php';
- }
if ( ! defined( 'FS_METHOD' ) ) {
/**
* When this constant is not set, WordPress writes and then deletes a
@@ -45,6 +42,9 @@
if ( getenv( 'FRAMEWORK' ) === 'wordpress_network' && ! defined( 'WP_ALLOW_MULTISITE' ) ) {
define( 'WP_ALLOW_MULTISITE', true );
}
+ if ( defined( 'MULTISITE' ) && defined( 'WP_ALLOW_MULTISITE' ) && WP_ALLOW_MULTISITE ) {
+ require_once 'inc/pantheon-network-setup.php';
+ }
if ( defined( 'WP_ALLOW_MULTISITE' ) && ( ! defined( 'MULTISITE' ) || empty( MULTISITE ) ) ) {
require_once 'inc/pantheon-multisite-finalize.php';
}
From c0f85b4b8fcfbe908f48fcd33b0e58e7d92c919a Mon Sep 17 00:00:00 2001
From: Carl Alberto
Date: Tue, 9 May 2023 07:08:32 +0800
Subject: [PATCH 2/3] Update initial config to be simplified and works best on
non live envs
---
inc/network/includes-network.php | 26 +-------------------------
1 file changed, 1 insertion(+), 25 deletions(-)
diff --git a/inc/network/includes-network.php b/inc/network/includes-network.php
index 7c06e24..8d3ad3a 100644
--- a/inc/network/includes-network.php
+++ b/inc/network/includes-network.php
@@ -496,33 +496,9 @@ function network_step2( $errors = false ) {