=== Passively Track Mailto Links ===
Contributors: harryfear
Donate link: https://pph.com/harryfear
Tags: analytics, email, tracking, mailto
Requires at least: 4.7
Tested up to: 7.1
Requires PHP: 7.0
Stable tag: 1.0.17
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Adds subject-line tracking to otherwise basic mailto: links.

== Description ==

When a visitor clicks a plain `mailto:` link, the email they send arrives with no clue as to which page they came from.
This plugin appends `?subject=<page URL>` to every `mailto:` link on the front end that does not already carry
query parameters, so incoming emails show the page the visitor was on.

* Links that already have a `?subject=` (or any other `?` parameter) are left untouched.
* Non-mailto links are never modified.
* Lightweight vanilla JavaScript, loaded in the footer, with no jQuery dependency.

== Installation ==

1. Upload the `mailto-link-amender` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Keep it activated to receive automatic updates.

== Changelog ==

= 1.0.17 =
* Update offers now appear even when the site cannot reach WordPress.org.

= 1.0.16 =
* Background auto-updates now work (WP-cron, WP-CLI and Easy Updates Manager), plus updater robustness fixes.

= 1.0.15 =
* Fixed a missing closing parenthesis in the mailto link selector.
* Removed the unnecessary jQuery dependency and moved the script to the footer.
* Script now also runs when loaded after the page has finished parsing (e.g. deferred by an optimisation plugin).
* Added Requires at least / Requires PHP / Tested up to plugin headers.
* Tested with WordPress 7.1 and PHP 8.3.

= 1.0.14 =
* Stopped enqueuing the empty public stylesheet.

= 1.0.11 =
* Bug fix.
* Improved cache-busting when user manually polls for updates.

= 1.0.9-10 =
* Added visual feedback when immediately checking for updates.
* PHP 8 compatibility added.
* Improvements to on-demand updates checking.

= 1.0.3-8 =
* Added 6-hour caching to available auto-update checks. Added ability to do immediate check for available updates.

= 1.0.1 =
* Adds auto-updating capability when plugin is activated.

= 1.0.0 =
* Initial release.
