*** WordPress Job Manager alerts changelog ***

2024-04-29 - version 3.2.0
* New: Add job statistics about how many times the job was sent out in alert e-mails
* Dev: Add alert modal logged out version as template

2024-03-14 - version 3.1.1
* Fix jobs not being filtered by date for alert e-mails (#467)
* Fix: Update alert e-mail schedule when alert is edited in the admin screen (#469)

2024-02-20 - version 3.1.0
* Fix empty alert duration causing alerts to expire right away
* Fix "Manage Alerts" and "Unsubscribe" links in alert e-mails for guest users
* Fix company name, logo, location not showing in alert e-mails by default
* Fix job tags that the user searches for not being part of the alert
* Add a 'No alerts found' state to the My alerts page
* Show alert frequency in my alerts list
* Fix alert form permission checkbox
* Fix error when job types are not set

2024-02-02 - version 3.0.0
* New: Accountless Alerts. A long requested feature, now a new option makes user registration optional for creating job alerts. Job seekers can create alerts just with their e-mail, and after receiving and clicking a verification link, they'll start getting alert e-mails just like registered users did. These guest users can also manage via magic links in the e-mails sent.
* New: HTML e-mails. The Alert e-mails are now formatted. Brand color can be customized, as well as whether company name/logo/location should be displayed for the jobs.
* New: Customize which job fields can be used for setting up alerts.
* New: Add Alert modal: Instead of navigating to a new page with a form, alerts can be added right from the job listing page. Clicking Add Alert opens a modal to create an alert for the current search.
* Fix: Fix shortcode handler only running in pages
* Fix: Fix job alert pre-filling data when clicking New Alert

Note: WP Job Manager version 2.2.1 is required for this release. 

Developer notes: 

* Refreshed frontend styles for elements like notices and the new modal
* Alerts switched to the e-mail system of the core plugin
* New HTML variants for the alert and confirmation e-mails
* Template updates for the shortcode and new templates for e-mails and the alert modal
* General code refactoring
* Accountless alerts functionality uses a new guest user concept, implemented in the core plugin. These users are stored as a CPT, and authenticate to manage their alerts via tokens in the URL

If you customize Job Alerts templates in a theme, the templates will need to be updated to work with the new features. If you integrate with the add-on in another way, nothing should break, but please test and check if any code needs to be updated.

2023-11-17 - version 2.1.1
* Fix: Only run has_shortcode if content is not null (#148)

2023-10-05 - version 2.1.0
* Fix: Fix my-alerts.php template HTML
* Fix: Make 'Add alert' link relative
* Fix: Fix redirection after actions on My alerts page

2023-06-10 - version 2.0.0
* Enhancement: Replace my alerts table with list of cards #78
* Enhancement: Add Job Alerts admin table #80
* Fix: Fix PHP 8.2 deprecations #81
* Fix: Fix translation text domain #74
* Fix: Use Job Type IDs instead of slugs #72

2023-05-04 - version 1.6.0
* Fix: Fix reflected XSS.

2022-11-18 - version 1.5.6
* Enhancement: Add Job Types to the My Alerts table.
* Enhancement: Use multiselect UI for Job Types in the form.
* Fix: Job Type field missing in the form.
* Fix: Alert message displaying on `[job_alerts]` shortcode.
* Dev: Move the `[job_alerts]` sign-in message to a separate template file.

2021-08-23 - version 1.5.5
* Enhancement: Add unsubscribe link to the email and text explaining why they are receiving it.
* Enhancement: Add email permission checkbox.
* Fix: Fix job type form showing up when job types are disabled by adding taxonomy check.
* Fix: Don't encode html special chars for email output.
* Enhancement: Remove job alert posts when removing user.

2020-08-25 - version 1.5.4
* Fix issue with `From` email domain processing.

2020-08-11 - version 1.5.3
* Adds monthly option for alert intervals.
* Fix issue with `From` email including subdirectories on multi-site installs.
* Fix issue with alert queries affecting search cache.

2019-03-04 - version 1.5.2
* Adds support for WP Job Manager 1.32.0's new asset enqueuing and Select2 usage.

2018-03-19 - version 1.5.1
* Fixes issue of alerts getting scheduled too closely together.
* Stores search terms in meta data so it doesn't affect the term's post count.

= 1.5.0 =
* Adds compatibility with WP Job Manager 1.29.0 and requires it for future updates.
* Periodically check for and reschedule alert cron events if they are lost.
* Fix issue with deprecated usage of `get_the_job_type()`.
* Verifies the owner of an alert before showing it.
* Fixes issue with HTML entities appearing in email "From" name.
* Dev: Adds `job_manager_alerts_single_listing_link` filter for single job listing links.

= 1.4.2 =
* Pass the $alert variable through the job_manager_alerts_get_job_listings_args filter. 

= 1.4.1 =
* Improved appearance of listings in emails.
* Fix text domain.

= 1.4.0 =
* Setup alerts for job tags (if installed). Requires tags 1.3.7+.
* New job_manager_alerts_alert_schedules filer to control and add custom schedules.
* Use ob_get_clean() for add/edit alert forms.
* Changed columns displayed on My Alerts screen for clarity.

= 1.3.14 =
* Fix alert_location notice.

= 1.3.13 =
* Fix conflict with regions.

= 1.3.12 =
* Fix job_manager_alerts_matches_only option check.

= 1.3.11 =
* Leave form URL when using ajax.
* Support region hierarchy.

= 1.3.10 =
* Don't hide empty regions.

= 1.3.9 =
* Fix job_manager_alerts_matches_only option check.
* Improved from email.

= 1.3.8 =
* Fix alert_page_url

= 1.3.7 =
* fortnightly typo.

= 1.3.6 =
* Signin link when logged out with job_manager_alerts_login_url filter.
* Updated POT

= 1.3.5 =
* Don't show alert button during job_preview.

= 1.3.4 =
* "Alert me to jobs like this" link shown on single listings.
* Reset loop after emailing jobs.

= 1.3.3 =
* Fix region selection.

= 1.3.2 =
* Preserve spaces in search_location on add alert button.
* Switched page slug option to dropdown.

= 1.3.1 =
* Load translation files from the WP_LANG directory.
* Updated the updater class.

= 1.3.0 =
* Send alerts from noreply@yoursite.com
* Show nested categories on alerts form (please note, you will need to update your alert-form.php template if you've used an override.)

= 1.2.5 =
* Uninstaller.

= 1.2.4 =
* Don't enqueue chosen.

= 1.2.3 =
* Add a filter to the notifications query. job_manager_alerts_get_job_listings_args

= 1.2.2 =
* Use wp_schedule_event instead of wp_schedule_single_event.
* Correctly reschedule on edit.

= 1.2.1 =
* Fix wp_localize_script

= 1.2.0 =
* Ability to trigger an email alert from the job alerts shortcode.
* Added support for job regions plugin.

= 1.1.2 =
* Preserve spaces in search_keywords on add alert button

= 1.1.1 =
* Added POT file
* Fixed textdomain

= 1.1.0 =
* Added new updater - This requires a licence key which should be emailed to you after purchase. Past customers (via Gumroad) will also be emailed a key - if you don't recieve one, email me.

= 1.0.9 =
* Update textdomain

= 1.0.8 =
* Another fix to ensure the range filters are applied.

= 1.0.7 =
* Fix method_exists check

= 1.0.6 =
* Fix saving of taxonomies

= 1.0.5 =
* Missing localisation

= 1.0.4 =
* Fix issue when cats are disabled

= 1.0.3 =
* Fix found alerts check

= 1.0.2 =
* Added an option to disable alerts when no jobs are found.

= 1.0.1 =
* Only add alert link when page is set.

= 1.0.0 =
* First release.
