# Changelog

All notable changes to this project will be documented in this file.

### 1.10.2
- **Maintenance**: Version synchronization and documentation refinement.

### 1.10.1
- **Maintenance**: Version synchronization and documentation refinement.

### 1.10.0
- **Final Fix**: Resolved persistent SVN deployment failure by implementing "Extreme Pruning" of unused library metadata (removed 240+ ShortNumber files and Symfony unidata).
- Increased SVN transaction timeout to 1800s to ensure stability.

### 1.9.9
- Resolved persistent SVN deployment failure ("Connection reset by peer") by implementing deep pruning of unused library data (Carrier, Geocoding, Timezone).
- Drastically reduced SVN commit payload size and file count.

### 1.9.8
- **Fix**: Resolved SVN deployment failure ("Connection reset by peer") by implementing aggressive vendor pruning and increasing timeout.
- **Maintenance**: Version synchronization across all documentation.

### 1.9.7
- **Maintenance**: Refined GitHub Actions deployment workflow for improved PHP 8.2 compatibility and production vendor handling.
- **Maintenance**: Version synchronization across all documentation.

### 1.9.6
- **Maintenance**: Updated PHP version requirement for deployment safety.
- **Maintenance**: Version bump for synchronization.

### 1.9.5
- **Feature**: Added GitHub Actions deployment workflow (`deploy.yml`) for automated WordPress.org SVN pushing.
- **Maintenance**: Added `.distignore` to exclude development and version control files from the distribution package.
- **Maintenance**: Version synchronization across all documentation.

### 1.9.4
- **Maintenance**: Consistency bump and minor documentation refinement.

### 1.9.3
- **Architectural**: Improved hook structure for WooCommerce integration.
- **Maintenance**: General stabilization.

### 1.9.2
- **Fix**: Resolved issue where the `{otp}` placeholder was not correctly replaced in the email subject line when using the Pro extension.
- **Maintenance**: Version bump for synchronization.

### 1.9.1
- **Compliance**: Achieved 100% Pro-unawareness by removing all Pro-specific logic from the base plugin core.
- **Refactor**: Delegated message template customization entirely to hooks and filters.

### 1.9.0
- **Architectural**: Consolidating versioning after major trialware compliance refactor.
- **Maintenance**: General stabilization and preparedness for WordPress.org listing.

### 1.8.1
- **Security**: Added `sanitize_key()` to settings keys during the save process in `class-admin.php`.
- **Documentation**: Added specific API URLs for ISMS, Twilio, and Vonage in `readme.txt` as per reviewer feedback.

### 1.8.0
- **Compliance**: Full alignment with WordPress.org Guideline 5 (Trialware).
- **Refactor**: Implemented a fully hook-based admin interface to decouple Pro features.
- **Refactor**: Moved all restricted logic, UI elements, and "Pro" badges to the separate Pro extension.
- **Cleanup**: Base plugin is now 100% free of locked or limited features.

### 1.7.2
- **Fix**: Resolved multiple coding standard issues (WPCS).
- **Fix**: Updated logic to use UTC_TIMESTAMP and gmdate for better timezone consistency.
- **Fix**: Prefixed all global variables in template files.
- **Fix**: Replaced `rand()` with `wp_rand()` for better security.
- **Fix**: Added missing translators comments for strings with placeholders.

### 1.7.1
- **Security**: Implemented proper output escaping for all translatable strings using `esc_html__`, `esc_html_e`, and `wp_kses` to prevent XSS vulnerabilities.

### 1.7.0
- **Feature**: Streamlined profile completion by redirecting to standard WooCommerce edit account page.
- **Fix**: Ensured phone number normalization is correctly applied during checkout registration to prevent account creation errors.
- **Fix**: Implemented enhanced template fallback mechanism to ensure default templates are used if custom settings are empty.
- **Cleanup**: Removed deprecated custom profile checkout endpoints and shortcodes.

### 1.6.0
- **UI**: Major overhaul of the admin interface using a custom premium framework.
- **Feature**: Added AJAX-based saving for settings with toast notifications.
- **Refactor**: Modularized provider configuration rendering (`render_admin_fields` in provider classes).
- **Refactor**: Moved WhatsApp provider logic and configuration to the Pro extension.
- **UI**: Added a custom status sidebar and persistent tab navigation.

### 1.5.1
- **Fix**: Resolved syntax errors in the admin settings page.

### 1.5.0
- **UI**: Refined Math CAPTCHA input style (compact, black border, no radius).
- **UI**: Changed Math CAPTCHA input type to `text` for better compatibility.
- **Documentation**: Restructured documentation, moved changelog to `CHANGELOG.md`.

### 1.4.0
- **Security**: Added Math CAPTCHA ("Prove your humanity") to prevent bot attacks and protect SMS credits.
- **Feature**: Automatic regeneration of math problems on failed attempts.
- **Admin**: Configurable Math CAPTCHA toggle in General Settings.

### 1.3.0
- **Security**: Added OTP Secret Key mechanism to prevent unauthorized logins via standard WordPress login pages.
- **Security**: 6-digit OTP codes are now appended with a configurable secret string before being used as user passwords.
- **Admin**: Added OTP Secret Key configuration field in General Settings.

### 1.2.0
- **Feature**: Unified Mobile and Email login flow.
- **Improvement**: Enhanced phone number normalization.

### 1.1.0
- **Feature**: Added configurable WooCommerce integration settings (Redirect My Account, Replace Checkout Login, Disable Checkout Registration).
- **Feature**: Added configurable Country Codes setting.

### 1.0.0
- Initial release.
- Mobile login with OTP via ISMS API.
- Custom authentication handler.
