Skip to content

Releases: rizennews/memberpress-geo-currency

MemberPress Geo Currency v1.0.1

Choose a tag to compare

@rizennews rizennews released this 27 Dec 11:28
2445f0c

[1.0.1] - 2024-12-28

Added

  • Automatic updates via GitHub using the YahnisElsts/plugin-update-checker library.
  • Admin settings page with options for:
    • IPInfo API Key
    • Open Exchange Rates API Key
    • Default Currency
    • Cache Duration
  • Links to API provider websites from API key setting descriptions.
  • Instructions on how to obtain API keys, presented in an accordion-style UI.
  • Dynamic currency symbol display next to the default currency dropdown.
  • Help text for cache duration setting.
  • "Settings" link on the WordPress Plugins page for easier access to the plugin's settings.

Changed

  • Improved IP address validation in MPGC_Geolocation class.
  • Added a default country setting to fall back on if geolocation fails.
  • Refactored code to use constants for option names.
  • Updated README.md with detailed installation, usage instructions, FAQ, and contributing guidelines.
  • Added GPLv2 license file (LICENSE.txt).
  • Moved accordion functionality JavaScript inside the document.ready function for proper scope.
  • Simplified the show/hide API key toggle button logic.
  • Added trim() to input validation for more accurate checks.
  • Moved the accordion functionality code inside the document.ready function.
  • Simplified the show/hide API key toggle button logic.
  • Enhanced the getCurrencySymbol function to support more currencies.

Fixed

  • Corrected currency mapping in MPGC_Currency_Converter to use country codes as keys.
  • Implemented NumberFormatter for proper currency formatting.
  • Fixed minor code style issues and improved comments.
  • Enhanced error handling and input validation.
  • Resolved namespacing issues that were causing fatal errors:
    • Ensured the mpgc_load_textdomain function is defined before it's hooked to plugins_loaded.
    • Added namespace to add_action and add_filter calls when hooking namespaced functions.
    • Corrected the add_action call for mpgc_register_settings to include the namespace.
  • Fixed the issue where the settings page was not displaying in the WordPress admin menu.
  • Ensured all necessary files are included before they are referenced.
  • Fixed the redundant use statement for PucFactory that was causing a conflict.

Security

  • Added escaping to translatable strings and URLs in the output.

MemberPress Geo Currency v1.0.0

Choose a tag to compare

@rizennews rizennews released this 27 Dec 08:01

Full Changelog

1.0.0 - 2024-12-27

Added

  • Initial release.
  • Geolocation detection using the IPInfo API.
  • Currency conversion using the Open Exchange Rates API.
  • Automatic currency switching for MemberPress pricing.
  • Admin settings page to configure:
    • IPInfo API Key
    • Open Exchange Rates API Key
    • Default Currency
    • Cache Duration
  • Caching for geolocation data and exchange rates.
  • Multilanguage support with a .pot file.
  • Hooks and filters for developers.
  • Show/Hide API Key in admin setting.
  • Input Validation in admin setting.
  • Dynamic Currency Symbol change in admin setting.
  • Cache Duration Helper text in admin setting.
  • Escaping for translatable strings in the main plugin file.