Skip to content

Commit b088a75

Browse files
committed
check that get_current_screen is defined.
1 parent 708a51d commit b088a75

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

admin/class-bread-admin.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,17 @@ function get_meeting_list_templates_json(string $root): string
137137
}
138138
return json_encode($sizes);
139139
}
140-
function ml_default_editor()
140+
function ml_default_editor($r)
141141
{
142+
if (!function_exists( 'get_current_screen' )) {
143+
return $r;
144+
}
142145
global $my_admin_page;
143146
$screen = get_current_screen();
144147
if ($screen->id == $my_admin_page) {
145148
return "tinymce";
146149
}
150+
return $r;
147151
}
148152

149153
function force_mce_refresh($ver)

bmlt-meeting-list.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Plugin Name: Bread
1212
* Plugin URI: https://bmlt.app
1313
* Description: Maintains and generates PDF Meeting Lists from BMLT.
14-
* Version: 2.8.7
14+
* Version: 2.8.8
1515
* Author: bmlt-enabled
1616
* Author URI: https://bmlt.app/
1717
* License: GPL-2.0+

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: meeting list, bmlt, narcotics anonymous, na
55
Requires PHP: 8.1
66
Requires at least: 6.2
77
Tested up to: 6.7.1
8-
Stable tag: 2.8.7
8+
Stable tag: 2.8.8
99

1010
License: GPLv2 or later
1111
License URI: http://www.gnu.org/licenses/gpl-2.0.html

0 commit comments

Comments
 (0)