From 3316002cbaca496e824fc94218da25a4c45f2a51 Mon Sep 17 00:00:00 2001 From: Kevin Pliester <5339107+pixelbart@users.noreply.github.com> Date: Mon, 29 Nov 2021 19:11:32 +0100 Subject: [PATCH] 4.4.64 --- core/tabs/class-start.php | 8 +++++--- helpful.php | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/core/tabs/class-start.php b/core/tabs/class-start.php index 2bbc828..74f7e1f 100644 --- a/core/tabs/class-start.php +++ b/core/tabs/class-start.php @@ -187,10 +187,12 @@ public function ajax_get_posts_data() ], ], ]; + + $args = apply_filters('helpful/ajax_get_posts_data/args', $args); + $transient = 'helpful_admin_start_' . md5(serialize($args)); + $query = get_transient($transient); - $transient = 'helpful_admin_start_' . md5(serialize($args)); - - if (false === ($query = get_transient($transient))) { + if (false === $query) { $query = new \WP_Query($args); $cache_time = $options->get_option('helpful_cache_time', 'minute', 'esc_attr'); $cache_times = Helpers\Cache::get_cache_times(false); diff --git a/helpful.php b/helpful.php index 3245df7..67f5b08 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.63 + * Version: 4.4.64 * Author: Pixelbart * Author URI: https://pixelbart.de * Text Domain: helpful