Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker: Install full wporg-mu-plugins #1187

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions .docker/config/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
},
"extra": {
"installer-paths": {
"public_html/wp-content/mu-plugins-private/{$name}/pub-sync/tmp": ["wporg/wporg-mu-plugins"],
"public_html/wp-content/plugins/{$name}/": ["type:wordpress-plugin"],
"public_html/wp-content/mu-plugins/{$name}/": ["type:wordpress-muplugin"],
"public_html/wp-content/themes/{$name}/": ["type:wordpress-theme"]
Expand Down Expand Up @@ -142,9 +143,8 @@
},
"scripts": {
"post-update-cmd": [
"mkdir -p public_html/wp-content/mu-plugins-private/wporg-mu-plugins/pub-sync",
"mv public_html/wp-content/mu-plugins/wporg-mu-plugins/mu-plugins/utilities public_html/wp-content/mu-plugins-private/wporg-mu-plugins/pub-sync",
"rm -rf public_html/wp-content/mu-plugins/wporg-mu-plugins"
"mv public_html/wp-content/mu-plugins-private/wporg-mu-plugins/pub-sync/tmp/mu-plugins/* public_html/wp-content/mu-plugins-private/wporg-mu-plugins/pub-sync",
"rm -rf public_html/wp-content/mu-plugins-private/wporg-mu-plugins/pub-sync/tmp/"
]
}
}
5 changes: 4 additions & 1 deletion public_html/wp-content/mu-plugins/load-other-mu-plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* Load mu-plugins that should run on all networks.
*/
function wcorg_include_common_plugins() {
// Include the private `wporg-mu-plugins` from `dotorg.svn`. These are different than the
// ones included in `wcorg_include_network_only_plugins()`.
if ( file_exists( dirname( __DIR__ ) . '/mu-plugins-private/wporg-mu-plugins.php' ) ) {
require_once dirname( __DIR__ ) . '/mu-plugins-private/wporg-mu-plugins.php';
}
Expand All @@ -25,8 +27,9 @@ function wcorg_include_network_only_plugins() {
if ( EVENTS_NETWORK_ID === SITE_ID_CURRENT_SITE ) {
$network_folder = 'events';

// Include the public `wporg-mu-plugins` that are synced from Git to SVN. These are different than the
// ones included in `wcorg_include_common_plugins()`.
require_once dirname( __DIR__ ) . '/mu-plugins-private/wporg-mu-plugins/pub-sync/loader.php';

} else {
$network_folder = 'wordcamp';
}
Expand Down
Loading