File tree 1 file changed +13
-10
lines changed
1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change 14
14
$ sites = jquery_sites ();
15
15
$ options = array_merge ( $ options , $ sites [ JQUERY_LIVE_SITE ]['options ' ] );
16
16
foreach ( $ options as $ option => $ value ) {
17
- if ( $ option === 'stylesheet ' || $ option === 'template ' ) {
18
- // Don't mess with themes for now.
19
- continue ;
20
- }
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.
26
- continue ;
17
+ // Skip these in production, where they are managed by puppet.
18
+ // Staging should be allowed to set them for testing.
19
+ // Local testing with a fresh database does not
20
+ // currently work if these are skipped.
21
+ if ( !JQUERY_STAGING ) {
22
+ if ( $ option === 'stylesheet ' || $ option === 'template ' ) {
23
+ // Don't mess with themes for now.
24
+ continue ;
25
+ }
26
+ if ( $ option === 'active_plugins ' ) {
27
+ // In production, Puppet manages activation of per-site plugins.
28
+ continue ;
29
+ }
27
30
}
28
31
add_filter ( 'pre_option_ ' . $ option , function () use ( $ value ) {
29
32
return $ value ;
You can’t perform that action at this time.
0 commit comments