From 0a32df9d171c843b5871c27cafcdee5a3019da86 Mon Sep 17 00:00:00 2001 From: otrok7 <50595291+otrok7@users.noreply.github.com> Date: Tue, 27 Oct 2026 15:08:15 +0100 Subject: [PATCH 1/4] Refactor how service bodies are stored in configuration. Previously, the service bodies were stored in the options table as an array of arrays. Now, they are stored as an associative array with the service body ID as the key and the service body data as the value. This change allows for easier access to service body data by ID and improves performance when retrieving service body information. --- admin/class-bread-admin.php | 2 +- admin/js/bmlt_meeting_list.js | 3 +- admin/js/bread-wizard.js | 5 +- admin/partials/_bmlt_server_setup.php | 2 +- bmlt-meeting-list.php | 4 +- includes/class-bread-bmlt.php | 44 ++--- includes/class-bread.php | 185 +++++++++--------- public/class-bread-content-generator.php | 9 +- public/class-bread-meeting-enhancer.php | 21 +- public/class-bread-meetingslist-structure.php | 12 +- readme.txt | 2 +- tests/mock/class-bread-bmlt.php | 9 - 12 files changed, 131 insertions(+), 167 deletions(-) diff --git a/admin/class-bread-admin.php b/admin/class-bread-admin.php index ed1642d..5a6e875 100644 --- a/admin/class-bread-admin.php +++ b/admin/class-bread-admin.php @@ -511,7 +511,7 @@ function pwsix_process_wizard() while (0 === strpos(bin2hex($encode_options), 'efbbbf')) { $encode_options = substr($encode_options, 3); } - $settings = json_decode($encode_options, true); + $settings = $this->bread->upgrade_settings(json_decode($encode_options, true)); $ncols = substr_count($settings['meeting_template_content'], '