From d1ddcc6236dc6a9dd84fcb05b3a4101f9ba5629e Mon Sep 17 00:00:00 2001 From: otrok7 <50595291+otrok7@users.noreply.github.com> Date: Sun, 12 Nov 2023 17:08:10 +0100 Subject: [PATCH] fix 7.4 compatibility --- .gitignore | 5 +---- crouton.php | 4 ++-- readme.txt | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 0b8c1b9..5e546fa 100644 --- a/.gitignore +++ b/.gitignore @@ -3,12 +3,9 @@ logs vendor node_modules -croutonjs/dist/crouton.* +croutonjs/dist/crouton* croutonjs/src/js/templates.js *.orig *.iml tmp - -croutonjs/dist/crouton-core.js -croutonjs/dist/crouton-core.min.js .vscode/launch.json diff --git a/crouton.php b/crouton.php index ae2eecb..570a2a6 100644 --- a/crouton.php +++ b/crouton.php @@ -5,7 +5,7 @@ Description: A tabbed based display for showing meeting information. Author: bmlt-enabled Author URI: https://bmlt.app -Version: 3.17.1 +Version: 3.17.2 */ /* Disallow direct access to the plugin file */ if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { @@ -956,7 +956,7 @@ private function getAllFields($root_server) try { $results = wp_remote_get($root_server . "/client_interface/json/?switcher=GetFieldKeys"); return json_decode(wp_remote_retrieve_body($results), true); - } catch (Exception) { + } catch (Exception $e) { return []; } } diff --git a/readme.txt b/readme.txt index 3d054ca..81fbd19 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: na, meeting list, meeting finder, maps, recovery, addiction, webservant, b Requires at least: 4.0 Required PHP: 5.6 Tested up to: 6.2.2 -Stable tag: 3.17.1 +Stable tag: 3.17.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html crouton implements a Tabbed UI for BMLT.