From 3cbb6415b6e5b86381e1cc0e177659f36742543b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20G=C3=BCnther?=
Date: Sun, 22 Sep 2024 21:46:14 +0200
Subject: [PATCH] compatibility fix for new version
---
bdp-kompass.php | 4 ++--
includes/setup.php | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/bdp-kompass.php b/bdp-kompass.php
index 94b618a..310b9ed 100644
--- a/bdp-kompass.php
+++ b/bdp-kompass.php
@@ -55,8 +55,8 @@ add_action('admin_menu', function () {
});
-add_action('wp_ajax_kompass_show_ajax', 'kompass_load_ajax_content');
-add_action('wp_ajax_nopriv_kompass_show_ajax', 'kompass_load_ajax_content');
+add_action('wp_ajax_bdp_kompass_show_ajax', 'bdp_kompass_load_ajax_content');
+add_action('wp_ajax_nopriv_bdp_kompass_show_ajax', 'bdp_kompass_load_ajax_content');
function register_custom_theme_directory() {
if (is_dir(ABSPATH . '/wp-content/themes/mareike-theme/')) {
diff --git a/includes/setup.php b/includes/setup.php
index 1832cc7..0e4f4c0 100644
--- a/includes/setup.php
+++ b/includes/setup.php
@@ -70,7 +70,7 @@ function kompass_get_age(string $birthday) : int {
return $compare->y;
}
-function kompass_load_ajax_content() {
+function bdp_kompass_load_ajax_content() {
$class = 'Bdp\\Modules\\' . $_REQUEST['module'] . '\\Controllers\\AjaxRouterController';
if (!class_exists($class)) {
wp_die('Invalid module call: Module=' . $_REQUEST['module']);