Skip to content

Commit

Permalink
4.4.52
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelbart committed Sep 3, 2021
1 parent 3852928 commit 6bff62e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions core/helpers/class-feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @package Helpful
* @subpackage Core\Helpers
* @version 4.4.50
* @version 4.4.51
* @since 1.0.0
*/
namespace Helpful\Core\Helpers;
Expand Down Expand Up @@ -106,6 +106,7 @@ public static function insert_feedback()
{
global $wpdb;

$type = '';
$fields = [];
$pro = 0;
$contra = 0;
Expand Down Expand Up @@ -185,6 +186,7 @@ public static function insert_feedback()
}

$data = [
'type' => $type,
'time' => current_time('mysql'),
'user' => esc_attr($_REQUEST['user_id']),
'pro' => $pro,
Expand Down Expand Up @@ -234,9 +236,9 @@ public static function send_email($feedback)

/* tags */
$tags = [
'{type}' => $type,
'{name}' => isset($feedback['fields']['name']) ? $feedback['fields']['name'] : '',
'{email}' => isset($feedback['fields']['email']) ? $feedback['fields']['email'] : '',
'{type}' => (isset($feedback['type'])) ? $feedback['type'] : '',
'{name}' => (isset($feedback['fields']['name'])) ? $feedback['fields']['name'] : '',
'{email}' => (isset($feedback['fields']['email'])) ? $feedback['fields']['email'] : '',
'{message}' => $feedback['message'],
'{post_url}' => get_permalink($post),
'{post_title}' => $post->post_title,
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.51
* Version: 4.4.52
* Author: Pixelbart
* Author URI: https://pixelbart.de
* Text Domain: helpful
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: helpful, poll, feedback, reviews, vote, review, voting
Requires at least: 4.6
Tested up to: 5.8
Requires PHP: 5.6.20
Stable tag: 4.4.51
Stable tag: 4.4.52
License: MIT License
License URI: https://opensource.org/licenses/MIT

Expand Down

0 comments on commit 6bff62e

Please sign in to comment.