Skip to content

Releases: pixelbart/helpful

4.4.57

07 Oct 16:07
Compare
Choose a tag to compare

Enhanced

  • The last change was refined. There are now a few HTML tags available. In the documentation you can also find the new filter if you want to allow your own HTML tags.

Fixed

  • The option on which type Samesite is set for cookies, in Helpful's settings, can now be changed. This did not work before.

Thanks to @erwanlr from @wpscanteam! Check out the tool. The colleagues from there, do great work!

4.4.56

07 Oct 09:43
Compare
Choose a tag to compare

Enhanced

  • WordPress' register_setting function, which Helpful also uses to save options, has now been extended with sanitize_text_field to close XSS vulnerabilities. Unfortunately, this currently ensures that no HTML tags are no longer allowed within Helpful. Until I, or whoever of you, has found an alternative solution for this, HTML is no longer possible in Helpful settings until further notice. Unfortunately security comes first. If any of you have a better idea, feel free to post here. I'm not a security expert myself, but I'll try my best here. You can manipulate this change with a filter. [#22]

Thanks to @mikhail-net (Twitter) for the tip and review. If you have any suggestions for improvement, feel free to contact me!

4.4.55

06 Oct 08:06
Compare
Choose a tag to compare

Enhanced

  • Helpful is shown in posts with multiple pages, now only on the last page. A filter to disable this feature can be found here. [#18]

Fixed

  • Helpful sets the cookie and session only in the frontend, no longer in the login or admin area. [#21]
  • Helpful now sets the margin only on top. The other positions are no longer affected. [#19]
  • Helpful now also checks if the header has already been sent when setting a cookie. [#13]
  • PHP_INT_MAX was removed and replaced with 10. [#20]

Thanks to @joshcummingsdesign and @seb86!

4.4.54

24 Sep 11:53
Compare
Choose a tag to compare

Enhanced

  • There is now a filter for pretty much any option. For this I had to rewrite a lot. If you notice any errors, please report them in the forum.

4.4.53

04 Sep 12:49
Compare
Choose a tag to compare

Fixed

  • The option "Show form after voting" now works as planned again.

Many thanks to @wegerl!

4.4.52

03 Sep 08:24
Compare
Choose a tag to compare

Fixed

  • Replace undefined functions with available functions. [#17]
  • A variable that was not set was corrected. Received feedback via email, should now be correct again and show no database errors.

Many thanks to @dishitpala!

4.4.51

27 Aug 17:16
Compare
Choose a tag to compare

Enhanced

  • Helpful now stores everything in instances. Thereby each Helpful instance is called instance. The instances are derived from the respective shortcode based on the post ID and the "question". This means you can now use Helpful multiple times within a post if the questions are different in each case. Then a user can vote for a post multiple times since each shortcode is a separate instance. There are no evaluations for this in wp-admin yet (that was secondary for me for now) - so please don't get confused.
  • Users who have already voted can therefore now vote again, as the old vote had no instance. I could have built a solution for this, but it might have caused problems if you already have many votes. Therefore, the solution for me was not to build a solution - simply so that there are the least problems.
  • Important: The above changes basically only affect those of you who want to include Helpful multiple times on a single page using shortcode. All other users should not notice anything, except that your users can now vote again.

Fixed

  • For developers: I will keep a second branch on Github from now on, where I publish changes first before making a release. Currently, to my shame, I have put everything on the master/main branch. So really messy. This should change now. The new branch will be called development.

4.4.50

26 Aug 14:23
Compare
Choose a tag to compare

Enhanced

  • I edited the introductory comments in code and took out the descriptions. I will then add that again correctly at times. Also, I now try to specify the update directly in the file with @Version. That makes it then also later easier for me to find out when I have actually done what.
  • In addition, I have removed the WordPress coding standard again, because certain formatting that are given in the coding standard, collide with PHP 8.0. As soon as there is a solution, I change again. Currently I use the phpfmt for Visual Studio Code.
  • No real enhancement, but important: I try to document the suggestions and problems on Github. Just so I don't lose track of it. I will always post bugs on the forum itself then as an issue on Github, for the people who don't use Github. For people who do use Github, they can then submit their suggestions directly there as well.

Fixed

  • It now checks if headers have already been sent before setting the session. If the headers have already been sent, no session is created. This should fix most problems with headers that have already been sent.

4.4.49

26 Aug 00:08
Compare
Choose a tag to compare

Enhanced

  • It is now possible to export the logs.
  • Helpful is now housed in its own class, at least in part. I will expand that in the future. Also, the_content has now been replaced with the shortcode to avoid duplicate code. The class now also counts the number of shortcode used in the current post. I will use this in the future to allow single instances of Helpful, within a post. However, this is still up in the air and will take some time. At least this is prepared now.
  • For the above instances, a separate database table is already created, which is not yet used. So don't be surprised if you look into your database and find a total of three Helpful tables. Currently there is the table for votes, one for feedback and then the new one for the instances, which is not used yet.

Fixed

  • The Delete button in the logs, is now translated correctly or can be translated now.
  • Still needs to be fixed: It can still happen that Helpful spits out a warning in your error logs that the sessions are already set and could not be set again. I have tried a few things here now, but have not been able to find a solution to the problem. If you think of something, feel free to post on Github for it.

4.4.48

25 Aug 07:48
Compare
Choose a tag to compare

Fixed

  • I have removed the debug information again. I forgot to remove it yesterday. Apologies for that. Props to wegerl.at!