Changelog

2.7.0

  • 2023-04-07
  • Revamp likes.
  • Add unlikes.
  • Set default location for likes under content.
  • Add own CSS file to add-on.
  • Remove function ‘gwolle_gb_entry_metabox_lines_like_ajax’.
  • Escape more output.
  • Take some hints from phpcs.

2.6.0

  • 2023-01-24
  • Use ‘wp_required_field_indicator’ function from WordPress Core 6.1 if available.
  • Add location for star rating at author info heading, requires latest gwolle plugin.

2.5.1

  • 2022-11-19
  • Quick fix for missing roles.

2.5.0

  • 2022-11-11
  • Use custom capabilities ‘gwolle_gb_moderate_comments’ and ‘gwolle_gb_upload_files’.
  • Fix warning in notification email of uploaded media.

2.4.0

  • 2022-09-01
  • Add Automatic Refresh.
  • Add email notification for uploaded media.
  • Add options for adding meta fields to the widget.
  • Dependency for jquery should be an array.
  • Only use ‘gwolle_gb_ajax_callback’ for callbacks.

2.3.0

  • 2022-03-16
  • Add option to upload images through the form.
    (Only for Author, Editor and Administrator with capability ‘upload_files’).
  • Fix double listing of total entries, when average star rating is enabled.
  • Change priority of average star rating hook.
  • Place “clearboth” divs inside div for form field, compatibility with zass theme.
  • Use ‘urlencode’ for social media sharing link.
  • Add social media services: WhatsApp, Pocket, Tumblr.
    Asking for testers for Pocket and Tumblr.
  • Remove social media services: VK.
  • Require 4.2.2 or newer of main plugin.

2.2.1

  • 2022-01-14
  • Fix silly typo for average star rating.
  • Make sure to use ‘int’ for star rating.
  • Use function ‘gwolle_gb_array_flatten()’ instead of ‘print_r()’.
  • Fix sitemaps, always use ‘int’, not the ‘float’ from ‘ceil()’ for total pages.
  • Add class to frontend form and list of entries to indicate this addon is active.

2.2.0

  • 2021-11-19
  • Fix saving select dropdown, when nothing was selected.
  • Set form fields for name and slug to required, so slug always gets filled in.
  • Use more ‘esc_attr’ function where appropriate.
  • Fix deleting entry for author.
  • Run update hook in ‘init’ instead of ‘admin_init’ to support background updates.
  • No need to check if function ‘current_user_can’ and ‘is_multisite’ exist.

2.1.3

  • 2021-09-28
  • Add span elements around meta fields display, so there can be CSS for them.

2.1.2

  • 2021-09-13
  • Always return data on ‘gwolle_gb_addon_starrating_average_hook’ function.
  • Use ‘sanitize_text_field()’ for permalink on AJAX request.

2.1.1

  • 2021-09-07
  • Fix JavaScript dependencies in star rating.
  • Update text for privacy policy, add text for likes.
  • Add update URI to plugin header so wp.org will not update this plugin.

2.1.0

  • 2021-03-02
  • Extend edit in metabox to author name and city/origin, add labels.
  • Fix deprecated jQuery calls with WP 5.6 and jQuery 3.5.
  • Fix order of loading JavaScript for starrating.
  • Fix warning when reporting abuse.
  • Set steps for starrating on admin to “1” as well.
  • Change ‘intval()’ to ‘(int)’.
  • Change ‘strval()’ to ‘(string)’.
  • Change ‘floatval()’ to ‘(int)’ for starrating.
  • Require at least v4.0.8 of gwolle-gb.

2.0.5

  • 2020-10-06
  • Remove placeholders in form, labels should be enough.
  • Don’t use constants from the main plugin, in case it is not active.
  • Show admin notice everywhere when main plugin is not active.

2.0.4

  • 2020-08-11
  • Fix saving star rating on admin editor.
  • Add Settings link to the main plugin page.

2.0.3

  • 2020-07-21
  • Fix Rich Snippet for Average Star Rating.
  • Remove blocklist, it is part of main plugin.

2.0.2

  • 2020-06-22
  • Support XML Sitemaps that are in WordPress Core since WP 5.5.
  • Remove ‘:’ from form labels.
  • Only load JavaScript in ‘wp_footer’ when needed.
  • Fixed a few actions for ‘gwolle_gb_save_entry_admin’.
  • Use standard From addres ‘wordpress@domain.com’ as default.
  • Fix PHP Warning.
  • Add wrapper function ‘gwolle_gb_addon_get_user_ip()’.
  • Remove function ‘gwolle_gb_addon_report_get_user_ip()’.
  • Do not hook ‘gwolle_gb_save_entry_frontend’ to delete ajax, only clear cache.

2.0.1

  • 2020-05-13
  • Add unlike function after likes.
  • Extend delete/anonymize to 6 and 12 months as well.
  • Fix starrating for preview on some hosts.
  • Fix form settings to be able to add options to new radiobuttons or select dropdown.
  • Fix form settings to always save ‘required’ setting correctly.
  • Set error for select element on ‘div.input’.
  • Use either page title or widget title for star rating snippet, use ‘esc_attr()’.
  • Set min-height/min-width for rating reset button.
  • Fix PHP warnings.

2.0.0

  • 2020-04-28
  • Require version 4.0.0 of Gwolle Guestbook plugin.
  • Support multiple forms for preview and starrating.
  • Redesigned form-tab on settings page.
  • Add option for meta fields for required field.
  • Support different form elements; text, checkbox, radio buttons, select dropdown, textarea.
  • Add option to like an entry and view the likes.
  • Show starrating in preview.
  • Mark meta field slugs for ‘starrating’ and ‘likes’ as reserved.
  • Only load admin pages on dashboard, not frontend.
  • Fix serialized options.
  • Add callback ‘gwolle_gb_addon_preview_callback’.
  • Support arrays in meta field values.
  • Add parameter ‘$flush’ to ‘gwolle_gb_addon_get_meta’ for flushing the meta cache.
  • For each entry, only one abuse report at the same time.

1.5.1

  • 2019-11-11
  • Fix bug for string replacement in messages in the form.
  • Add function gwolle_gb_entry_social_media_service.
  • Refactor social media link without JavaScript.
  • Drop usage of ‘create_function’, PHP 5.2 is not supported anyway.
  • Show message on editor if there are no meta fields yet.

1.5.0

  • 2019-09-25
  • Edit content of entry on the frontend with AJAX.
  • Small updates to install routine.
  • Support new wp_initialize_site action for multisite.
  • Better testing for values of meta fields.
  • Add rel=”noopener noreferrer” to social media sharing.
  • Add Telegram for social media sharing.

1.4.0

  • 2019-05-03
  • Add blacklist for words and IP address.
  • Update social media sharing for better accessibility.
  • Update rateit.js to 1.1.2 for better accessibility.
  • Improve handling of return values for meta fields.
  • Improve test for admin_reply in metabox.
  • Update Required version of Gwolle Guestbook to 3.1.4 for blacklist to work.

1.3.2

  • 2019-03-16
  • Add Reddit for social media sharing.
  • Fix Facebook URL for social media sharing.

1.3.1

  • 2019-03-08
  • Remove Google Plus for social media sharing.
  • Use filter gwolle_gb_get_permalink for permalinks.
  • Small improvements to html formatting.
  • Small fixes found by the phan tool.
  • On adding admin reply through frontend, always show full content.

1.3.0

  • 2019-01-22
  • Add option to enable/disable Preview.
  • Show meta fields for preview as well.
  • Fix resetting of social media location.
  • On settings page, have separate function for $_POST update.
  • Switch database table to utf8mb4 when possible.
  • Add some accessibility fixes.
  • Update Required version of Gwolle Guestbook to 2.5.4.

1.2.4

  • 2018-12-09
  • Fix resetting of starrating location.
  • Don’t run upgrade every admin load.

1.2.3

  • 2018-11-08
  • Revert previous jQuery bugfix (incompatible with IE 11).

1.2.2

  • 2018-10-30
  • Send author email when admin reply was added through frontend.
  • Use jQuery to get data from input fields in form for preview.
  • Add reporter ip address to abuse report email.
  • Fix PHP warning.

1.2.1

  • 2018-07-09
  • Add rating to widget.
  • Add Auto Anonymize timer (optional).
  • Add example text to the privacy policy.
  • Add meta fields to notification mails (needs Gwolle 2.6.1).
  • Fix preview when AJAX is disabled.

1.2.0

  • 2018-06-11
  • Add function for abuse report.
  • Fix JavaScript error when rating is not used.
  • Return meta_id on updating meta field in ‘gwolle_gb_addon_save_meta’.
  • Fix preview with Gwolle 2.6.0.

1.1.2

  • 2018-04-25
  • Add complete form to string replacement.
  • Use ‘wp_kses_post’ function to sanitize string replacements.

1.1.1

  • 2018-04-13
  • Add Auto Delete timer (optional).
  • Add hook for uninstall.
  • Set default settings upon install/upgrade, so we can cache them.
  • Don’t fetch meta_values from the db that we know do not exist.

1.1.0

  • 2018-03-25
  • Delete meta fields on permanently deleting an entry (needs Gwolle > 2.4.0).
  • Add support for sitemap for Yoast SEO.
  • Add support for sitemap for All In One SEO Pack.
  • Add support for sitemap for The SEO Framework.
  • Add support for sitemap for Google Sitemap Generator.
  • Add support for sitemap for XML Sitemap Feed.
  • Function gwolle_gb_addon_get_meta can really return an array.
  • Use gwolle_gb_sanitize_input and gwolle_gb_sanitize_output for meta_value.
  • Rephrase Cheating messages like WP Core.

1.0.7

  • 2018-02-10
  • Add option for display location for social media.
  • Add option for display location for starrating.
  • Fix email encoding for PHP 7.2.
  • Remove filter for email regex.

1.0.6

  • 2018-01-06
  • Encode email addresses at frontend.

1.0.5

  • 2017-11-29
  • Add email button to contact each author (optional).
  • Add widget for average star rating per guestbook.

1.0.4

  • 2017-11-06
  • Separate option for delete link for moderators and author.
  • Add link to support forum for ideas.
  • Show text when there are no meta fields yet.
  • Localize admin JavaScript.
  • Update readme with more instructions.

1.0.3

  • 2017-10-19
  • Update readme with installation instructions.
  • Add filter ‘gwolle_gb_addon_social_media’.
  • Improve docblocks.

1.0.2

  • 2017-10-03
  • Really load Gwolle JS on every page for callbacks and rating (add priority).

1.0.1

  • 2017-09-15
  • Add cancel button for AJAX admin reply.
  • Load Gwolle JS on every page for callbacks and rating.

1.0.0

  • 2017-08-28
  • Initial release.