Release v1.0.6-rc12
Pre-release
Pre-release
Fix: WordPress Image Upload Blocking Issue
Problem
WordPress Media Library image uploads (JPG, PNG, WEBP) were being blocked by the UtilitySign plugin's file upload validation.
Root Cause
The plugin was applying file upload validation globally to ALL WordPress uploads, not just UtilitySign-specific uploads.
Solution
- Scoped file upload validation to UtilitySign-specific uploads only
- Standard WordPress uploads (Media Library, post/page editor) now bypass validation
- Enhanced validation with WordPress best practices
Changes
- ✅ Fixed file upload validation scoping
- ✅ Enhanced context detection using WordPress functions (wp_doing_rest_api, wp_doing_ajax)
- ✅ Improved MIME type validation (wp_check_filetype_and_ext)
- ✅ Added comprehensive input validation and error handling
- ✅ Implemented null safety and edge case handling
Testing
- ✅ Image uploads tested in Media Library (JPG, PNG, WEBP)
- ✅ Post/page editor image uploads verified
- ✅ UtilitySign functionality preserved
- ✅ Debug log reviewed - no errors found
Files Changed
wp-plugin/utilitysign/includes/Core/SecurityService.php- Enhanced validate_file_upload method
Documentation
wp-plugin/URGENT_FIX_IMAGE_UPLOAD_BLOCKING.mdwp-plugin/DEBUG_LOG_REVIEW_AND_IMPROVEMENTS.md