Repository navigation
π Critical Security Update
This release fixes critical SQL injection vulnerabilities and includes important security improvements. Highly recommended upgrade for all users.
π Security Fixes
- β Fixed critical SQL injection vulnerabilities in log viewer
- β Fixed critical SQL injection vulnerability in cart abandonment feature
- β Fixed critical bug in uninstall script (undefined variable)
- β Added capability checks to all admin functions
β¨ New Features
- π― Added cart abandonment message configuration in settings page
- π Added pagination to SMS logs viewer (50 logs per page)
π Enhancements
- β Added API credentials validation before sending SMS
- β Added phone number format validation
- β Improved API response handling with proper HTTP status code checking
- β Added conditional debug logging (only when WP_DEBUG is enabled)
- β‘ Added database index on
sent_atcolumn for better performance - π Added text domain for internationalization support
- π§Ή Added deactivation hook to properly clean up scheduled events
π§ Code Quality Improvements
- π Extracted API endpoint to constant for better maintainability
- π Added comprehensive PHPDoc blocks throughout the codebase
- π‘οΈ Improved error handling across all features
π¦ Installation
From GitHub
- Download woocommerce-sms-notifications.zip from the assets below
- Go to WordPress Admin β Plugins β Add New β Upload Plugin
- Upload the zip file and activate
Manual Installation
- Download and extract the zip file
- Upload the
woocommerce-sms-notificationsfolder to/wp-content/plugins/ - Activate the plugin through the Plugins menu in WordPress
π Upgrade Instructions
Important: This is a security update. Please update as soon as possible.
- Backup your site before updating
- Update the plugin via WordPress Admin or manually upload the new version
- The database will automatically update with the new index on activation
π Full Changelog
Modified Files:
- admin/log-viewer.php - Added pagination and SQL injection fix
- admin/settings-page.php - Added cart abandonment message field and capability check
- includes/class-cart-abandonment.php - Fixed SQL injection and added error handling
- includes/class-order-status.php - Added conditional debug logging
- includes/class-sms-api.php - Added validation and improved response handling
- uninstall.php - Fixed variable name bug
- woocommerce-sms-notifications.php - Added deactivation hook and database index
- readme.txt - Updated version and changelog
Stats: 8 files changed, 194 insertions(+), 22 deletions(-)
π Credits
Maintained by Phil Wamba
GitHub: @philwamba