Skip to content

Commit

Permalink
CMSP-9: Defines multisite variable where appropriate. (#11)
Browse files Browse the repository at this point in the history
* CMSP-9: Defines multisite variable where appropriate.

* Fix spacing issue

Co-authored-by: Chris Reynolds <[email protected]>

---------

Co-authored-by: Ryan Wagner <[email protected]>
Co-authored-by: Chris Reynolds <[email protected]>
  • Loading branch information
3 people authored Mar 21, 2023
1 parent b1b1b57 commit a185eeb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pantheon.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
*/
define( 'FS_METHOD', 'direct' );
}
// When developing a WordPress Multisite locally, ensure that this constant is set.
// This will set the Multisite variable in all Pantheon environments.
if ( getenv( 'FRAMEWORK' ) === 'wordpress_network' && ! defined( 'WP_ALLOW_MULTISITE' ) ) {
define( 'WP_ALLOW_MULTISITE', true );
}
if ( defined( 'WP_ALLOW_MULTISITE' ) && ( ! defined( 'MULTISITE' ) || empty( MULTISITE ) ) ) {
require_once 'inc/pantheon-multisite-finalize.php';
}
Expand Down

0 comments on commit a185eeb

Please sign in to comment.