From 14478e7575c6ca4e25f880fb4012f4812d122f70 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Fri, 11 Oct 2024 19:03:46 +1000 Subject: [PATCH] Camptix tweaks: Always load the requires-login addon. --- .../mu-plugins/camptix-tweaks/camptix-tweaks.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/public_html/wp-content/mu-plugins/camptix-tweaks/camptix-tweaks.php b/public_html/wp-content/mu-plugins/camptix-tweaks/camptix-tweaks.php index dfbbd39d8..3ddc20559 100644 --- a/public_html/wp-content/mu-plugins/camptix-tweaks/camptix-tweaks.php +++ b/public_html/wp-content/mu-plugins/camptix-tweaks/camptix-tweaks.php @@ -529,16 +529,12 @@ function load_addons( $addons ) { /** @var $camptix \CampTix_Plugin */ global $camptix; - $require_login_sites = apply_filters( - 'camptix_extras_require_login_site_ids', - array( - 206, // testing.wordcamp.org - 364, // 2014.sf.wordcamp.org - 447, // belohorizonte.wordcamp.org/2015 - ) + $skip_require_login = apply_filters( + 'camptix_skip_require_login', + [] ); - if ( in_array( get_current_blog_id(), $require_login_sites, true ) ) { + if ( ! in_array( get_current_blog_id(), $skip_require_login, true ) ) { /* * todo -- NOTE: when this is opened up for all camps, it will have to be enabled ONLY on WCSF14 and sites * that haven't opened tickets yet. Otherwise CampTix_Requre_login::hide_unconfirmed_attendees()