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

plugins: restore puppet management of staging plugins #461

Merged
merged 1 commit into from
Jul 13, 2024
Merged
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
9 changes: 5 additions & 4 deletions plugins/jquery-filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@
$sites = jquery_sites();
$options = array_merge( $options, $sites[ JQUERY_LIVE_SITE ]['options'] );
foreach ( $options as $option => $value ) {
// Skip these in production, where they are managed by puppet.
// Staging should be allowed to set them for testing.
// Skip these on live sites (both production and staging),
// where they are managed by puppet.
// Local testing with a fresh database does not
// currently work if these are skipped.
if ( !JQUERY_STAGING ) {
if ( JQUERY_STAGING !== 'local' ) {
if ( $option === 'stylesheet' || $option === 'template' ) {
// Don't mess with themes for now.
continue;
}
if ( $option === 'active_plugins' ) {
// In production, Puppet manages activation of per-site plugins.
// On live sites (including staging ones),
// Puppet manages activation of per-site plugins.
continue;
}
}
Expand Down