diff --git a/CHANGELOG.md b/CHANGELOG.md
index c8792b3..621c416 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog
+## 1.5.1
+
+* fixed settings
+
## 1.5.0
* added the option to filter pages/files using regular expressions
diff --git a/pirsch-wordpress.php b/pirsch-wordpress.php
index 9d9a858..476befb 100644
--- a/pirsch-wordpress.php
+++ b/pirsch-wordpress.php
@@ -3,7 +3,7 @@
* Plugin Name: Pirsch Analytics
* Plugin URI: https://pirsch.io/
* Description: Connect your Wordpress website to Pirsch Analytics.
- * Version: 1.5.0
+ * Version: 1.5.1
* Requires at least: 5.2
* Requires PHP: 7.4
* Author: Emvi Software GmbH
@@ -75,9 +75,9 @@ function pirsch_analytics_settings_page_init() {
'pirsch_analytics_page'
);
add_settings_field(
- 'pirsch_analytics_ignore_path',
+ 'pirsch_analytics_path_filter',
__('Path Filter', 'pirsch_analytics'),
- 'pirsch_analytics_ignore_path_callback',
+ 'pirsch_analytics_path_filter_callback',
'pirsch_analytics_page',
'pirsch_analytics_page'
);
@@ -101,7 +101,7 @@ function pirsch_analytics_base_url_callback() {
}
function pirsch_analytics_hostname_callback() {
- $value = get_option('pirsch_analytics_value', '');
+ $value = get_option('pirsch_analytics_hostname', '');
echo '';
}
@@ -120,9 +120,9 @@ function pirsch_analytics_client_secret_callback() {
echo '';
}
-function pirsch_analytics_ignore_path_callback() {
- $value = get_option('pirsch_analytics_ignore_path', '');
- echo '';
+function pirsch_analytics_path_filter_callback() {
+ $value = get_option('pirsch_analytics_path_filter', '');
+ echo '';
}
function pirsch_analytics_settings_page_html() {
@@ -211,7 +211,7 @@ function pirsch_analytics_is_wp_site() {
}
function pirsch_analytics_is_excluded() {
- $patterns = explode(' ', get_option('pirsch_analytics_ignore_path'));
+ $patterns = explode(' ', get_option('pirsch_analytics_path_filter'));
foreach ($patterns as $pattern) {
if (preg_match($pattern, $_SERVER['REQUEST_URI'])) {
diff --git a/readme.txt b/readme.txt
index fe2fb6c..4aec9e0 100644
--- a/readme.txt
+++ b/readme.txt
@@ -31,6 +31,10 @@ Please refer to our website for our [terms and conditions](https://pirsch.io/ter
== Changelog ==
+= 1.5.1 =
+
+- fixed settings
+
= 1.5.0 =
- added the option to filter pages/files using regular expressions