Skip to content

Commit 6f3a8fe

Browse files
committed
All: Remove remnants of WP-MU ("multi-site") configuration
Ref jquery/infrastructure-puppet#6 Ref jquery/infrastructure-puppet#29 (comment)
1 parent e3abcec commit 6f3a8fe

File tree

11 files changed

+7
-455
lines changed

11 files changed

+7
-455
lines changed

.github/workflows/php.yml

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
php-version:
14-
- "5.4"
1514
- "7.4"
1615
- "8.0"
1716
- "8.1"

INSTALL.md

-119
This file was deleted.

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"require": {
3-
"php": ">= 5.4"
3+
"php": ">= 7.4"
44
},
55
"require-dev": {
66
"php-parallel-lint/php-parallel-lint": "1.3.2"

config.php

-65
This file was deleted.

install.php

-121
This file was deleted.

mu-plugins/_loader.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
// Plugins enabled everywhere for local dev (jquery-wp-docker) and old WP-MU servers.
3+
// Plugins enabled everywhere for local dev (jquery-wp-docker)
44
//
55
// For production, plugin enablement is managed via Puppet:
66
// https://github.com/jquery/infrastructure-puppet/blob/staging/modules/profile/manifests/wordpress/docs.pp

package.json

-3
This file was deleted.

plugins/jquery-filters.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@
1818
// Don't mess with themes for now.
1919
continue;
2020
}
21-
if ( $option === 'active_plugins' && !is_multisite() ) {
22-
// For standalone sites, let Puppet manage plugins.
21+
if ( $option === 'active_plugins' ) {
22+
// Deprecated
23+
// In production, Puppet manages activation of per-site plugins.
24+
// Locally, global plugins are enabled via mu-plugins/_loader.php,
25+
// and per-site plugins are activated by the imported database.
2326
continue;
2427
}
2528
add_filter( 'pre_option_' . $option, function () use ( $value ) {

0 commit comments

Comments
 (0)