Skip to content

Commit

Permalink
All: Remove remnants of WP-MU ("multi-site") configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Krinkle committed Oct 19, 2023
1 parent e3abcec commit 6f3a8fe
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 455 deletions.
1 change: 0 additions & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
fail-fast: false
matrix:
php-version:
- "5.4"
- "7.4"
- "8.0"
- "8.1"
Expand Down
119 changes: 0 additions & 119 deletions INSTALL.md

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"require": {
"php": ">= 5.4"
"php": ">= 7.4"
},
"require-dev": {
"php-parallel-lint/php-parallel-lint": "1.3.2"
Expand Down
65 changes: 0 additions & 65 deletions config.php

This file was deleted.

121 changes: 0 additions & 121 deletions install.php

This file was deleted.

2 changes: 1 addition & 1 deletion mu-plugins/_loader.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

// Plugins enabled everywhere for local dev (jquery-wp-docker) and old WP-MU servers.
// Plugins enabled everywhere for local dev (jquery-wp-docker)
//
// For production, plugin enablement is managed via Puppet:
// https://github.com/jquery/infrastructure-puppet/blob/staging/modules/profile/manifests/wordpress/docs.pp
Expand Down
3 changes: 0 additions & 3 deletions package.json

This file was deleted.

7 changes: 5 additions & 2 deletions plugins/jquery-filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
// Don't mess with themes for now.
continue;
}
if ( $option === 'active_plugins' && !is_multisite() ) {
// For standalone sites, let Puppet manage plugins.
if ( $option === 'active_plugins' ) {
// Deprecated
// In production, Puppet manages activation of per-site plugins.
// Locally, global plugins are enabled via mu-plugins/_loader.php,
// and per-site plugins are activated by the imported database.
continue;
}
add_filter( 'pre_option_' . $option, function () use ( $value ) {
Expand Down
Loading

0 comments on commit 6f3a8fe

Please sign in to comment.