From 23ee81a508ab45a2e81d5abc279a405bcfc4e1bb Mon Sep 17 00:00:00 2001 From: Kevin Pliester <5339107+pixelbart@users.noreply.github.com> Date: Wed, 2 Mar 2022 15:14:08 +0100 Subject: [PATCH] 4.4.70 --- core/assets/js/admin-log.js | 4 +++- helpful.php | 2 +- readme.txt | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/core/assets/js/admin-log.js b/core/assets/js/admin-log.js index 5aa3306..0c016f0 100644 --- a/core/assets/js/admin-log.js +++ b/core/assets/js/admin-log.js @@ -114,12 +114,14 @@ }); request.done(function(response) { + let randomString = Math.random().toString(36).substring(2, 9); + $(".helpfulLogsClickable").remove(); var clickableElement = $("", { class: "helpfulLogsClickable", href: response.file, - download: "", + download: "helpful-log-" + randomString + ".csv", style: "position:absolute;top:0;left:-9999px;" }).appendTo("body"); diff --git a/helpful.php b/helpful.php index 9b40c14..6ecd58d 100644 --- a/helpful.php +++ b/helpful.php @@ -2,7 +2,7 @@ /** * Plugin Name: Helpful * Description: Add a fancy feedback form under your posts or post-types and ask your visitors a question. Give them the abbility to vote with yes or no. - * Version: 4.4.69 + * Version: 4.4.70 * Author: Pixelbart * Author URI: https://pixelbart.de * Text Domain: helpful diff --git a/readme.txt b/readme.txt index 56f5a24..77bf0e7 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: helpful, poll, feedback, reviews, vote, review, voting Requires at least: 4.6 Tested up to: 5.9 Requires PHP: 5.6.20 -Stable tag: 4.4.69 +Stable tag: 4.4.70 License: MIT License License URI: https://opensource.org/licenses/MIT