Releases: rizennews/memberpress-geo-currency
Releases · rizennews/memberpress-geo-currency
Release list
MemberPress Geo Currency v1.0.1
[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_Geolocationclass. - Added a default country setting to fall back on if geolocation fails.
- Refactored code to use constants for option names.
- Updated
README.mdwith detailed installation, usage instructions, FAQ, and contributing guidelines. - Added GPLv2 license file (
LICENSE.txt). - Moved accordion functionality JavaScript inside the
document.readyfunction 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.readyfunction. - Simplified the show/hide API key toggle button logic.
- Enhanced the
getCurrencySymbolfunction to support more currencies.
Fixed
- Corrected currency mapping in
MPGC_Currency_Converterto use country codes as keys. - Implemented
NumberFormatterfor 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_textdomainfunction is defined before it's hooked toplugins_loaded. - Added namespace to
add_actionandadd_filtercalls when hooking namespaced functions. - Corrected the
add_actioncall formpgc_register_settingsto include the namespace.
- Ensured the
- 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
usestatement forPucFactorythat was causing a conflict.
Security
- Added escaping to translatable strings and URLs in the output.
MemberPress Geo Currency v1.0.0
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
.potfile. - 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.