From b641399a7520389a8867529ed366483702dd1909 Mon Sep 17 00:00:00 2001 From: otrok7 <50595291+otrok7@users.noreply.github.com> Date: Wed, 10 Jul 2024 11:26:43 +0200 Subject: [PATCH] surpress warning --- bmlt-meeting-list.php | 4 ++-- readme.txt | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/bmlt-meeting-list.php b/bmlt-meeting-list.php index c84b85b..d209430 100644 --- a/bmlt-meeting-list.php +++ b/bmlt-meeting-list.php @@ -5,7 +5,7 @@ Description: Maintains and generates a PDF Meeting List from BMLT. Author: bmlt-enabled Author URI: https://bmlt.app -Version: 2.7.11 +Version: 2.7.12 */ /* Disallow direct access to the plugin file */ use Mpdf\Mpdf; @@ -886,7 +886,7 @@ function bmlt_meeting_list($atts = null, $content = null) $mpdf_init_options['restrictColorSpace'] = $this->options['colorspace']; $mpdf_init_options = array_merge($mpdf_init_options, $page_type_settings); $mpdf_init_options = apply_filters("Bread_Mpdf_Init_Options", $mpdf_init_options, $this->options); - ob_end_clean(); + @ob_end_clean(); // We load mPDF only when we need to and as late as possible. This prevents // conflicts with other plugins that use the same PSRs in different versions // by simply clobbering the other definitions. Since we generate the PDF then diff --git a/readme.txt b/readme.txt index 6eaaffc..48009a8 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: meeting list, bmlt, narcotics anonymous, na Requires PHP: 8.1 Requires at least: 6.2 Tested up to: 6.5 -Stable tag: 2.7.11 +Stable tag: 2.7.12 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -55,6 +55,9 @@ Follow all these steps, keep in mind that once you start using bread, it's not g == Changelog == += 2.7.12 = +* Surpress warning when ob_end_clean is called. + = 2.7.11 = * Late loading of mPDF to prevent conflicts with other plugins.