From 5034b5e296386ce18806b21a153d27446d3a241c Mon Sep 17 00:00:00 2001 From: Kevin Pliester <5339107+pixelbart@users.noreply.github.com> Date: Tue, 20 Jul 2021 12:20:20 +0200 Subject: [PATCH] 4.4.39 --- core/tabs/class-log.php | 5 ++++- helpful.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/core/tabs/class-log.php b/core/tabs/class-log.php index 1667964..ad2a902 100644 --- a/core/tabs/class-log.php +++ b/core/tabs/class-log.php @@ -161,6 +161,9 @@ public function ajax_get_log_data() $title = esc_html_x( 'No title found', 'message if no post title was found', 'helpful' ); } + $user_string = ($row->user) ? 1 : 0; + $user_string = apply_filters('helpful/logs/user_string', $user_string, $row); + $data = [ 'post_id' => $post->ID, 'post_title' => sprintf( @@ -170,7 +173,7 @@ public function ajax_get_log_data() ), 'pro' => $row->pro, 'contra' => $row->contra, - 'user' => $row->user ? 1 : 0, + 'user' => $user_string, 'time' => [ 'display' => date_i18n( 'Y-m-d H:i:s', strtotime( $row->time ) ), 'timestamp' => date_i18n( 'U', strtotime( $row->time ) ), diff --git a/helpful.php b/helpful.php index fbee781..8c3695e 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.38 + * Version: 4.4.39 * Author: Pixelbart * Author URI: https://pixelbart.de * Text Domain: helpful