@@ -2547,14 +2547,15 @@ function blc_render_surveillance_section_intro() {
25472547 <?php
25482548}
25492549
2550- /**
2551- * Render the surveillance thresholds management controls.
2552- *
2553- * @return void
2554- */
2555- function blc_render_surveillance_thresholds_field () {
2556- $ definitions = blc_get_surveillance_threshold_definitions ();
2557- $ defaults = blc_get_surveillance_threshold_defaults ();
2550+ if (!function_exists ('blc_render_surveillance_thresholds_field ' )) {
2551+ /**
2552+ * Render the surveillance thresholds management controls.
2553+ *
2554+ * @return void
2555+ */
2556+ function blc_render_surveillance_thresholds_field () {
2557+ $ definitions = blc_get_surveillance_threshold_definitions ();
2558+ $ defaults = blc_get_surveillance_threshold_defaults ();
25582559
25592560 $ global_definitions = isset ($ definitions ['global ' ]) && is_array ($ definitions ['global ' ])
25602561 ? $ definitions ['global ' ]
@@ -2906,6 +2907,7 @@ function blc_render_surveillance_thresholds_field() {
29062907 });
29072908 </script>
29082909 <?php endif ;
2910+ }
29092911}
29102912
29112913/**
@@ -3083,15 +3085,16 @@ function blc_render_notification_channels_field() {
30833085 <?php
30843086}
30853087
3086- /**
3087- * Render the thresholds configuration table for proactive surveillance.
3088- *
3089- * @return void
3090- */
3091- function blc_render_surveillance_thresholds_field () {
3092- $ stored_thresholds = get_option ('blc_surveillance_thresholds ' , array ());
3093- $ thresholds = blc_normalize_surveillance_thresholds ($ stored_thresholds );
3094- $ defaults = blc_get_surveillance_threshold_defaults ();
3088+ if (!function_exists ('blc_render_surveillance_thresholds_field ' )) {
3089+ /**
3090+ * Render the thresholds configuration table for proactive surveillance.
3091+ *
3092+ * @return void
3093+ */
3094+ function blc_render_surveillance_thresholds_field () {
3095+ $ stored_thresholds = get_option ('blc_surveillance_thresholds ' , array ());
3096+ $ thresholds = blc_normalize_surveillance_thresholds ($ stored_thresholds );
3097+ $ defaults = blc_get_surveillance_threshold_defaults ();
30953098
30963099 if (empty ($ thresholds ['global ' ])) {
30973100 $ thresholds ['global ' ] = $ defaults ['global ' ];
@@ -3452,7 +3455,8 @@ class="small-text"
34523455 </tr>
34533456 </template>
34543457 </div>
3455- <?php
3458+ <?php
3459+ }
34563460}
34573461
34583462/**
0 commit comments