Skip to content

Commit

Permalink
mu-plugins: Temporarily disable until compatible with Events network
Browse files Browse the repository at this point in the history
  • Loading branch information
iandunn committed Jun 21, 2023
1 parent 4ed15ff commit 2985c5d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion public_html/wp-content/mu-plugins/latest-site-hints.php
Expand Up @@ -2,11 +2,17 @@

namespace WordCamp\Latest_Site_Hints;
use function WordCamp\Sunrise\get_top_level_domain;

use const WordCamp\Sunrise\{ PATTERN_YEAR_DOT_CITY_DOMAIN_PATH, PATTERN_CITY_SLASH_YEAR_DOMAIN_PATH };

defined( 'WPINC' ) || die();

if ( 2 === SITE_ID_CURRENT_SITE ) {
// @todo Remove this once https://github.com/WordPress/wordcamp.org/issues/906 is fixed.
// If it's needed on the Events network, the constants above will need to be moved to `sunrise.php`, or
// defined in `sunrise-events.php` with a pattern designed for Events sites.
return;
}

// Hook in before `WordPressdotorg\SEO\Canonical::rel_canonical_link()`, so that callback can be removed.
add_action( 'wp_head', __NAMESPACE__ . '\canonical_link_past_home_pages_to_current_year', 9 );

Expand Down
6 changes: 6 additions & 0 deletions public_html/wp-content/mu-plugins/load-other-mu-plugins.php
Expand Up @@ -2,6 +2,12 @@

defined( 'WPINC' ) || die();

if ( 2 === SITE_ID_CURRENT_SITE ) {
// @todo Remove this once https://github.com/WordPress/wordcamp.org/issues/906 is fixed.
// In the meantime it causes problems because of switch_to_blog().
return;
}

wcorg_include_individual_mu_plugins();
wcorg_include_mu_plugin_folders();

Expand Down

0 comments on commit 2985c5d

Please sign in to comment.