=== Tasty Links ===
Contributors: danielbachhuber
Tags: affiliate, link, autolink
Stable tag: 1.6.6
Requires at least: 6.3
Requires PHP: 8.1
Tested up to: 7.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Tasty Links allows you to automatically link keywords on the front-end to the URL of your choice. Perfect for affiliate links and commonly referenced resources.

== Description ==

Tasty Links allows you to automatically link keywords on the front-end to the URL of your choice. Perfect for affiliate links and commonly referenced resources.

== Installation ==

The Tasty Links plugin can be installed much like any other WordPress plugin.

1. Upload the plugin ZIP archive file via "Plugins" -> "Add New" in the WordPress admin, or extract the files and upload them via FTP.
2. Activate the Tasty Links plugin through the "Plugins" list in the WordPress admin.

With Tasty Links, there aren't any confusing settings to configure or customizations you need to worry about. Just add your keywords, the URL it should link to, and watch as the links are automagically populated across your website.

== Frequently Asked Questions ==

= Will this plugin link content inside recipes? =

Yep! Tasty Links will link any keywords inside recipe posts.

= Can I use this plugin on a blog that's not about food? =

Yep! Tasty Links will work on any WordPress website. We made it with food bloggers in mind, but it'll be right at home on craft blogs, marketing blogs, social blogs... basically, anywhere you want to auto-link your content!

== Changelog ==
= 1.6.6 (September 10, 2026) =
* New: Live Tasty Links highlighting and unlinking in the Tasty Recipes editor
* Fix: Bug with the equipment field not saving

= 1.6.5 (September 1, 2026) =
* Enhancement: Improved equipment field styling in recipe editor with placeholder guidance
* Enhancement: Restored checkbox styling in admin Links list
* Fix: Equipment select input focus ring styling
* Fix: PHP warning in block editor context handling

= 1.6.4 (August 18, 2026) =
* Enhancement: Improvements to the licensing system
* Fix: Tasty Links settings are now limited to administrators

= 1.6.3 (March 31, 2026) =
* Enhancement: Updated the Tasty Affiliate settings to the new affiliate system
* Fix: Sporadic issue when updating

= 1.6.2 (March 17, 2026) =
* New: Support for multiple keywords for a single link
* Enhancement: Convert Amazon Creators API Version field to a text field
* Fix: Links not showing in Recipes in some scenarios
* Fix: Ignore comment showing up in the block builder

= 1.6.1 (February 17, 2026) =
* New: Integration with Tasty Recipes How Tos
* Fix: WPRM post types to the enabled posts list

= 1.6 (February 03, 2026) =
* New: Moved from the Amazon PA API to the new Creators API
* Enhancement: Upgrade blocks to apiVersion 3

= 1.5.4 (October 21, 2025) =
* Fix: Padding for the amazon status field
* Fix: Styling files update

= 1.5.3 (August 26, 2025) =
* Enhancement: Changed the Tasty Recipes equipment field to a searchable select field

= 1.5.2 (August 19, 2025) =
* New: Updated the Tasty Recipes integration to the new recipe editor
* Fix: Auto linking based on post type

= 1.5.1 (June 16, 2025) =
* Enhancement: Improved error handling for license activation
* Fix: Fatal error in some scenarios where other Tasty plugins were active

= 1.5 (June 4, 2025) =
* New: Redesigned admin interface

= 1.4.3 (Jan 23, 2025) =
* Fix: A bug in the plugin update process

= 1.4.2 (Nov 27, 2024) =
* Fix: Issue with the auto-linking option defaulting to off

= 1.4.1 (Oct 21, 2024) =
* Enhancement: "Prevent Auto Linking" has now been simplified to "Auto Linking"
* Fix: Affiliate Disclosure will always show at the top of the page if it was configured that way.
* Fix: Smaller images are now aligned correctly in the Featured Link block
* Fix: Disclosure text is now being shown when the only link on the page is a Featured Link block
* Fix: Alignment issue when 3 featured links were added on the same row

= 1.4 (Jan 17, 2024) =
* New: When creating an Amazon link, we now enable the "Sponsored" option automatically.
* New: Show notices for Amazon images that can't be updated due to broken URLs.
* Enhancement: Updating or changing an Amazon product url now instantly updates the featured image.
* Enhancement: Amazon field labels are now more clear.
* Enhancement: Amazon Link error messages are now more descriptive.
* Fix: Valid Amazon Links will now update even if broken links exist in the batch
* Fix: Amazon products with an integer for the ASIN now update properly.
* Fix: Tasty Links will now properly update images for links using amazon short URLs.
* Fix: Link URLs containing %2, like Shareasale links, are now saved correctly

= 1.3 (Dec 7, 2023) =
* New: Integrate with Amazon Product Advertising API v5.0 to automatically get product images with just the product link. Images in SiteStripe will no longer be available from Amazon, so be sure to apply for the affiliate API at Amazon.
* New: Links can now be selectively added automatically based on the post type.
* New: Replace links inside WP recipe maker plugin.
* Enhancement: Remove all admin notices from other plugins on Tasty pages.
* Enhancement: Some security hardening.
* Enhancement: Link replacement limits are now counted across the page content and every section of the Tasty Recipe card.
* Fix: Integrate properly with "Admin Notices Manager" plugin.
* Fix: Some license validation fixes.

= 1.2 (Sep 19, 2023) =
* New: New admin menu for all tasty plugins.
* New: New license manager page to make it easier to download/install/activate all tasty plugins.
* Enhancement: Excludes attachment/media description from applying link replacements.
* Enhancement: Order links by keyword when loading in featured block.
* Fix: Now more compatible with PHP 8.1

= 1.1.1 (Apr 6, 2023) =
* Fix: Update for WP 6.2 compatibility.
* Enhancement: Few styling changes on the featured links block.

= 1.1.0 (Jan 3, 2023) =
* New: Add a setting for the maximum times a single keyword can be replaced on a page.
* Fix: Slashes were getting stripped when a post revision was restored.
* Fix: Remove options from Feast that were showing in the Tasty Links settings.
* Fix: Some types of blocks (like ACF columns) weren't showing on the front-end when a link was replaced.

= 1.0.1 (November 11th, 2021) =
* Adds a `tasty_links_enabled_rendered_blocks` filter to allow Tasty Links to be applied on rendered blocks.
* Adds `rel="noopener"` by default to external links.
* Featured Links: Ensures the 'No link selected' option appears first, so the first Tasty Link can be selected.
* Disables Tasty Links preview inside the Yoast FAQ block.

= 1.0.0 (April 5th, 2021) =
* Generates the image width and height for manual image URLs.
* Updates EDD Updater to v1.8.0.

= 0.9.2 (October 1st, 2020) =
* Correctly removes `<span>` placeholders in slashed data to fix block editor bug introduced in v0.9.0.
* Introduces a `tasty_links_should_be_applied` filter for disabling auto-linking by context.

= 0.9.1 (September 29th, 2020) =
* Performance optimization: avoids repeat `get_posts()` calls for Tasty Links by only querying once per request.

= 0.9.0 (September 22nd, 2020) =
* Adds `class="tasty-link"` to all rendered links.
* Includes styles to improve display of images in the featured and equipment blocks.
* Disables pinning for affiliate images.
* Avoids stripping slashes in the REST API because it can break blocks.
* Updates Select2 to latest version with full library.
* Fixes PHP warning when WooCommerce uses the `post_title` filter.
* Adds a Settings action link to the plugin list.

= 0.8.0 (April 6th, 2020) =
* Adds `rel="sponsored"` option for each Tasty Link.
* Allows an externally-hosted image to be used for each Tasty Links.
* Adds an 'Insert from Amazon' button to convert Amazon product HTML to a Tasty Link.
* Introduces `tasty_links_card_image_size` filter for modifying card image size.
* Updates EDD Updater to v1.6.19.
* Increases minimum supported versions to WordPress 5.1 and PHP 7.0.

= 0.7.0 (November 14th, 2019) =
* Fixes styles for Tasty Link popup in the block editor.
* Fixes rare `preg_match_all()` unknown modifier error.

= 0.6.0 (May 8th, 2019) =
* Introduces a new Featured Links block.
* Adds Tasty Recipes equipment links integration.
* Adds a backend option to prevent a Tasty Link from auto-linking.
* Introduces `tasty_links_disable_post_auto_link` filter for disabling auto-linking on a given post type.
* Appends PHP and plugin version to EDD update requests.

= 0.5.0 (January 15th, 2019) =
* Adds support for Tasty Link previews within the Block Editor (Gutenberg).
* Prepends disclosure text to content when Tasty Link exists in recipe.
* Permits '&' to also match text with '&amp;'.
* Skips the currently requested URL when auto-linking keywords (to prevent self-links).

= 0.4.0 (August 28th, 2018) =
* Supports disclosure location as an option: after each link, or above post content.
* Introduces `tasty_links_disclosure_content_location` filter for controlling post content disclosure location.
* Adds `tasty-links-general-disclaimer` and `tasty-links-disclaimer` classes around disclosure text.
* Avoids linking to self if Tasty Link is to the post.

= 0.3.0 (June 20th, 2018) =
* Prioritizes longer Tasty Links with tagging keywords (e.g. 'lavender oil' over 'lavender').
* Prevents Tasty Links within heading elements (e.g. `<h3>`).
* Matches Tasty Links that include curled quotes or parentheses.

= 0.2.0 (April 17th, 2018) =
* Introduces Tasty Link previews within the TinyMCE editor.
* Disables automatic addition of parens to disclosure text.

= 0.1.1 (March 23rd, 2018) =
* Fixes plugin description in main plugins list.

= 0.1.0 (March 14th, 2018) =
* Initial release.
