=== Changelog (Historical) ===

This file contains historical changelog entries for older versions of Din - Muslim Prayer Timetable.
For the latest version changelog, see the readme.txt file.

= 1.1.3 =
* Fixed Plugin Check warnings: added phpcs:disable/enable annotations for direct database queries on custom table (table name interpolation in $wpdb->prepare is safe since it derives from $wpdb->prefix)
* Added caching to getDistinctYears() and getLatestYear() with proper cache invalidation on updates
* Fixed unsanitized $_GET input in AJAX handler (added wp_unslash before sanitize_text_field)

= 1.1.2 =
* Fixed text domain mismatch (now matches plugin directory slug)
* Fixed output escaping issues in PHP template files for security compliance
* Added phpcs ignore annotations for legitimate GET/FILES superglobal usage
* Fixed nonce verification warnings for tab navigation and settings redirect parameters

= 1.1.1 =
* Updated tested up to WordPress 7.1
* Renamed admin menu from "Prayer Times" to "Din Prayer Time"
* Moved admin menu from Settings submenu to top-level with safe position (200)
* Added success notification for PDF file settings save

= 1.1.0 =
* Renamed plugin from "DS Prayer Time Table" to "Din - Muslim Prayer Timetable" for trademark compliance
* Updated slug from ds-prayer-time-table to din-muslim-prayer-timetable
* Updated all prefixes from dptt_ to dpt_ for better uniqueness
* Removed load_plugin_textdomain() - translations now handled automatically by WordPress.org
* Fixed nonce sanitization by adding sanitize_text_field() before wp_verify_nonce()
* Moved admin menu from top-level (position 6) to Settings submenu for better integration
* Added proper WP_Filesystem() failure handling to prevent activation errors
* Added year cache invalidation in insertRow() to prevent stale data after imports
* Enhanced sanitizeHijriSettings() with proper validation for base Hijri year/day and Gregorian date
* Removed Custom CSS textarea feature to comply with WordPress.org guidelines
* Reduced readme tags to maximum 5 allowed
* Shortened short description to 150 characters
* Added rel="noopener" to external links for security
* Added submit_button for Custom CSS form in design-tab.php (removed with CSS feature)
* Fixed admin page title to use wrap class for proper WordPress styling
* Tested up to WordPress 6.6

= 1.0.10 =
* Fixed Plugin Check errors: added translators comments for placeholder strings
* Fixed Plugin Check errors: inlined wpdb prepare() calls to resolve PreparedSQL.NotPrepared warnings
* Fixed Plugin Check errors: added phpcs ignore annotations for safe output in render functions
* Tested up to WordPress 7.1

= 1.0.9 =
* Hardened security: all PHP files now check for ABSPATH before execution
* Replaced raw PHP date() calls with WordPress current_time()/gmdate() for timezone consistency
* Fixed CSV processor file handle management and error reporting
* Fixed unslashed nonce verification in admin CSV import handler
* Fixed SQL LIKE wildcard queries in uninstall and cache clearing (proper prepared statements)
* Fixed missing esc_html() on translatable strings passed to wp_die()
* Replaced wp_redirect with wp_safe_redirect in admin handlers
* Fixed unordered sprintf placeholders in validation messages
* Added file access protection (ABSPATH check) to all View files
* Escaped option values in settings forms to prevent XSS

= 1.0.8 =
* Added text alignment settings for table content, headers, dates, and next prayer display
* Added transparent background option for color pickers (clear color support)
* Fixed "Next:" label to use same color as prayer name and time
* Fixed PDF button position: bottom positions now render after the timetable
* Removed admin panel CSS variable injection (design settings now only affect frontend)
* Fixed duplicate closing div in next prayer template

= 1.0.7 =
* Fixed Hijri Date Background and Font Color not reflecting on frontend
* Fixed PDF download button settings not persisting after save
* Added save confirmation popup overlay with spinner for all settings forms
* Renamed "CSV Import" tab to "Data Import" (handles both CSV and PDF)
* Sorted design settings by type: Font Colors, Background Colors, Border Colors
* Added "No date display" option to Hijri Date Display Mode
* Resized QR code on Support page
* Added hyperlinks in Credits section
* Removed "Visit DEWA Solutions" button from About page
* Reorganized About page: slogan in title, version/author/wc info in meta section

= 1.0.5 =
* Replaced buggy tabular Hijri algorithm with simple anchor-based calculation
* Added admin override for Hijri month lengths (29/30 days per month)
* Added next prayer text color setting (replacing generic text_color)
* Added granular font size settings for each element
* Added top-center and bottom-center PDF button positions
* Updated plugin author info
* Various code quality improvements

= 1.0.4 =
* Initial release
