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