Skip to content

Commit

Permalink
4.4.39
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelbart committed Jul 20, 2021
1 parent 93c2688 commit 5034b5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion core/tabs/class-log.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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 ) ),
Expand Down
2 changes: 1 addition & 1 deletion helpful.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5034b5e

Please sign in to comment.