From 9aa2f26d16a77826867195d1c1c71f42e8a31499 Mon Sep 17 00:00:00 2001 From: otrok7 <50595291+otrok7@users.noreply.github.com> Date: Fri, 20 Dec 2024 20:04:21 +0100 Subject: [PATCH] does this fix the media upload problem? --- admin/class-bread-admin.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/admin/class-bread-admin.php b/admin/class-bread-admin.php index 852e967..9cf3850 100644 --- a/admin/class-bread-admin.php +++ b/admin/class-bread-admin.php @@ -563,10 +563,7 @@ function pwsix_process_settings_admin() } function process_customize_form() { - $_POST['bmltmeetinglistsave'] = isset($_POST['bmltmeetinglistsave']); - $_POST['bmltmeetinglistpreview'] = isset($_POST['bmltmeetinglistpreview']); - - if ($_POST['bmltmeetinglistsave'] || $_POST['bmltmeetinglistpreview']) { + if (isset($_POST['bmltmeetinglistsave']) || isset($_POST['bmltmeetinglistpreview'])) { if (!wp_verify_nonce($_POST['_wpnonce'], 'bmltmeetinglistupdate-options')) { die('Whoops! There was a problem with the data you posted. Please go back and try again.'); }