Making WordPress.org


Ignore:
Timestamp:
12/21/2018 12:42:08 AM (6 years ago)
Author:
coreymckrill
Message:

WordCamp: Load blocks, but only in testing environments for now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/load-other-mu-plugins.php

    r6715 r8006  
    1616    require_once( __DIR__ . '/wp-cli-commands/bootstrap.php' );
    1717    require_once( __DIR__ . '/camptix-tweaks/camptix-tweaks.php' );
     18
     19    if (
     20        ( defined( 'WORDCAMP_ENVIRONMENT' ) && 'production' !== WORDCAMP_ENVIRONMENT )
     21        || in_array( get_current_blog_id(), [ 928 ], true ) // Test sites
     22    ) {
     23        require_once( __DIR__ . '/blocks/blocks.php' );
     24    }
    1825
    1926    if ( is_file( $shortcodes ) ) {
Note: See TracChangeset for help on using the changeset viewer.