From 6df287d530fd6234cfb23d2e64641d9f66f9d142 Mon Sep 17 00:00:00 2001 From: josh Date: Thu, 12 Nov 2026 15:17:32 -0500 Subject: [PATCH] Hide event sub-club field until burnWorks syncs --- burn-events.php | 4 ++-- includes/class-admin.php | 12 ++++++++---- includes/class-clubs.php | 16 +++++++++++++--- 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/burn-events.php b/burn-events.php index 6d6b4c0..919d431 100644 --- a/burn-events.php +++ b/burn-events.php @@ -3,7 +3,7 @@ * Plugin Name: eventLabs * Plugin URI: https://git.labs.casa/josh/eventLabs * Description: Calendars, recurring events, community submissions, and a Single Event template builder for Elementor. - * Version: 0.5.5 + * Version: 0.5.6 * Requires at least: 6.9 * Requires PHP: 8.1 * Author: hostLabs @@ -16,7 +16,7 @@ declare(strict_types=1); defined( 'ABSPATH' ) || exit; define( 'BURN_EVENTS_FILE', __FILE__ ); -define( 'BURN_EVENTS_VERSION', '0.5.5' ); +define( 'BURN_EVENTS_VERSION', '0.5.6' ); foreach ( [ 'schedule', 'maps', 'events', 'admin', 'map-view', 'calendar-grid', 'calendar', 'community', 'transfer', 'single-event-templates', 'api', 'burnworks', 'clubs', 'legacy-migration', 'updates', 'platform' ] as $module ) { require_once __DIR__ . '/includes/class-' . $module . '.php'; diff --git a/includes/class-admin.php b/includes/class-admin.php index 5ee36a2..a686b7c 100644 --- a/includes/class-admin.php +++ b/includes/class-admin.php @@ -177,8 +177,11 @@ final class Admin { $data['organizer'] = array_filter( [ $options['organizer'] ] ); } self::event_fields( $data ); - $scope = (string) get_post_meta( $post->ID, Clubs::EVENT_META, true ); $options = Clubs::editor_options(); + if ( null === $options ) { + return; + } + $scope = (string) get_post_meta( $post->ID, Clubs::EVENT_META, true ); ?>