Skip to content

Commit 405dc8e

Browse files
fix name of options table in export file for sites using a non-default table prefix
1 parent 0696a3f commit 405dc8e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Koko Analytics is 100% free and open-source — no account required.
5252
- **Cache-friendly**: Works with browser and server caching.
5353
- **Open-source**: [View on GitHub](https://github.com/ibericode/koko-analytics).
5454
- **AMP support**: Tracks AMP pages (using the official AMP plugin).
55-
- **Import Historical Data*: Import historical data from Jetpack Stats, Plausible or Burst Statistics.
55+
- **Import Historical Data**: Import historical data from Jetpack Stats, Plausible or Burst Statistics.
5656

5757
### Upgrade to Koko Analytics Pro
5858

src/Admin/Data_Export.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ public function run(): void
6161
private function export_database_version($stream): void
6262
{
6363
$version = get_option('koko_analytics_version', '0.0.0');
64-
fwrite($stream, "DELETE FROM wp_options WHERE option_name = 'koko_analytics_version';\n");
65-
fwrite($stream, "INSERT INTO wp_options (option_name, option_value, autoload) VALUES ('koko_analytics_version', '{$version}', 'on');\n");
64+
fwrite($stream, "DELETE FROM {$this->db->options} WHERE option_name = 'koko_analytics_version';\n");
65+
fwrite($stream, "INSERT INTO {$this->db->options} (option_name, option_value, autoload) VALUES ('koko_analytics_version', '{$version}', 'on');\n");
6666
}
6767

6868
private function export_site_stats($stream): void

0 commit comments

Comments
 (0)